Class BasicToken
java.lang.Object
org.aspectj.weaver.patterns.BasicToken
- All Implemented Interfaces:
IHasPosition
,IToken
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getEnd()
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 literalint
getStart()
The starting index of this location in the character stream.Returns the string value of this token.boolean
Whether this should be treated as a token or a generic identifierstatic BasicToken
makeIdentifier
(String value, int start, int end) static BasicToken
makeLiteral
(String value, String kind, int start, int end) static BasicToken
makeOperator
(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:IHasPosition
The starting index of this location in the character stream.- Specified by:
getStart
in interfaceIHasPosition
-
getEnd
public int getEnd()Description copied from interface:IHasPosition
The 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:
getEnd
in interfaceIHasPosition
-
getFileName
-
getString
-
isIdentifier
public boolean isIdentifier()Description copied from interface:IToken
Whether this should be treated as a token or a generic identifier- Specified by:
isIdentifier
in interfaceIToken
-
maybeGetParsedPointcut
Description copied from interface:IToken
If this token represents a pre-parsed Pointcut, then return it; otherwise returns null. Needed for the implementation of 'if'- Specified by:
maybeGetParsedPointcut
in interfaceIToken
-
toString
-
getLiteralKind
Description copied from interface:IToken
Whether this should be treated as a literal value Kinds == "string", ??? returns null if this isn't a literal- Specified by:
getLiteralKind
in interfaceIToken
-