Package org.aspectj.weaver.patterns
Class BasicToken
java.lang.Object
org.aspectj.weaver.patterns.BasicToken
- All Implemented Interfaces:
IHasPosition,IToken
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionintgetEnd()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", ??? returns null if this isn't a literalintgetStart()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()
-
Method Details
-
makeOperator
-
makeIdentifier
-
makeLiteral
-
getStart
public int getStart()Description copied from interface:IHasPositionThe starting index of this location in the character stream.- Specified by:
getStartin interfaceIHasPosition
-
getEnd
public int getEnd()Description copied from interface: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.- Specified by:
getEndin interfaceIHasPosition
-
getFileName
-
getString
Description copied from interface: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()Description copied from interface:ITokenWhether this should be treated as a token or a generic identifier- Specified by:
isIdentifierin interfaceIToken
-
maybeGetParsedPointcut
Description copied from interface:ITokenIf this token represents a pre-parsed Pointcut, then return it; otherwise returns null. Needed for the implementation of 'if'- Specified by:
maybeGetParsedPointcutin interfaceIToken
-
toString
-
getLiteralKind
Description copied from interface:ITokenWhether this should be treated as a literal value Kinds == "string", ??? returns null if this isn't a literal- Specified by:
getLiteralKindin interfaceIToken
-