Package org.aspectj.weaver.patterns
Klasse BasicToken
java.lang.Object
org.aspectj.weaver.patterns.BasicToken
- Alle implementierten Schnittstellen:
IHasPosition,IToken
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintgetEnd()The ending index of this location in the character stream This points to the last character in this token.Whether this should be treated as a literal value Kinds == "string", ???intgetStart()The starting index of this location in the character stream.Returns the string value of this token.booleanWhether this should be treated as a token or a generic identifierstatic BasicTokenmakeIdentifier(String value, int start, int end) static BasicTokenmakeLiteral(String value, String kind, int start, int end) static BasicTokenmakeOperator(String value, int start, int end) If this token represents a pre-parsed Pointcut, then return it; otherwise returns null.toString()
-
Methodendetails
-
makeOperator
-
makeIdentifier
-
makeLiteral
-
getStart
public int getStart()Beschreibung aus Schnittstelle kopiert:IHasPositionThe starting index of this location in the character stream.- Angegeben von:
getStartin SchnittstelleIHasPosition
-
getEnd
public int getEnd()Beschreibung aus Schnittstelle kopiert:IHasPositionThe ending index of this location in the character stream This points to the last character in this token. If a location truly had no contents, then start == end + 1. We don't recommend this.- Angegeben von:
getEndin SchnittstelleIHasPosition
-
getFileName
-
getString
Beschreibung aus Schnittstelle kopiert:ITokenReturns the string value of this token. If isIdentifier is false, then this string must be intern'd so that == matching can be used. If isIdentifier is true, interning is not required. -
isIdentifier
public boolean isIdentifier()Beschreibung aus Schnittstelle kopiert:ITokenWhether this should be treated as a token or a generic identifier- Angegeben von:
isIdentifierin SchnittstelleIToken
-
maybeGetParsedPointcut
Beschreibung aus Schnittstelle kopiert:ITokenIf this token represents a pre-parsed Pointcut, then return it; otherwise returns null. Needed for the implementation of 'if'- Angegeben von:
maybeGetParsedPointcutin SchnittstelleIToken
-
toString
-
getLiteralKind
Beschreibung aus Schnittstelle kopiert:ITokenWhether this should be treated as a literal value Kinds == "string", ??? returns null if this isn't a literal- Angegeben von:
getLiteralKindin SchnittstelleIToken
-