Class Token
java.lang.Object
org.codehaus.janino.Token
Immutable representation of a Java token.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
The type of this token.Strictly speaking, this field is redundant, because the token type can always be deduced from the token value, e.g. iff the value begins with "'", then the type is
TokenType.CHARACTER_LITERAL. -
value
-
-
Constructor Details
-
Token
-
Token
-
-
Method Details
-
getLocation
- Returns:
- The location of the first character of this token
-
toString
-