Package org.codehaus.janino
Class Token
java.lang.Object
org.codehaus.janino.Token
Immutable representation of a Java token.
-
Field Details
-
fileName
-
lineNumber
private final int lineNumber -
columnNumber
private final int columnNumber -
location
-
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
The text of the token exactly as it appears in the source code.Iff this token represents a keyword,
true
,false
,null
or an operator, then this string isinterned
, so that it can be reference-compared with other interned strings.
-
-
Constructor Details
-
Token
-
Token
-
-
Method Details