public final class BasicToken extends java.lang.Object implements IToken
| Modifier and Type | Method and Description |
|---|---|
int |
getEnd()
The ending index of this location in the character stream
This points to the last character in this token.
|
java.lang.String |
getFileName() |
java.lang.String |
getLiteralKind()
Whether this should be treated as a literal value
Kinds == "string", ???
returns null if this isn't a literal
|
int |
getStart()
The starting index of this location in the character stream.
|
java.lang.String |
getString()
Returns the string value of this token.
|
boolean |
isIdentifier()
Whether this should be treated as a token or a generic identifier
|
static BasicToken |
makeIdentifier(java.lang.String value,
int start,
int end) |
static BasicToken |
makeLiteral(java.lang.String value,
java.lang.String kind,
int start,
int end) |
static BasicToken |
makeOperator(java.lang.String value,
int start,
int end) |
Pointcut |
maybeGetParsedPointcut()
If this token represents a pre-parsed Pointcut, then return it;
otherwise returns null.
|
java.lang.String |
toString() |
public static BasicToken makeOperator(java.lang.String value, int start, int end)
public static BasicToken makeIdentifier(java.lang.String value, int start, int end)
public static BasicToken makeLiteral(java.lang.String value, java.lang.String kind, int start, int end)
public int getStart()
IHasPositiongetStart in interface IHasPositionpublic int getEnd()
IHasPositiongetEnd in interface IHasPositionpublic java.lang.String getFileName()
public java.lang.String getString()
ITokenpublic boolean isIdentifier()
ITokenisIdentifier in interface ITokenpublic Pointcut maybeGetParsedPointcut()
ITokenmaybeGetParsedPointcut in interface ITokenpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getLiteralKind()
ITokengetLiteralKind in interface IToken