Package org.codehaus.janino
Class Scanner.Token
- java.lang.Object
-
- org.codehaus.janino.Scanner.Token
-
-
Field Summary
Fields Modifier and Type Field Description static intBOOLEAN_LITERALThe token represents a boolean literal; itsvalueis either 'true' or 'false'.static intCHARACTER_LITERALThe token represents a character literal; itsvalueis the text of the character literal exactly as it appears in the source code (including the single quotes around it).static intEOFIndication of the 'end-of-input' condition.static intFLOATING_POINT_LITERALThe token represents a floating-point literal; itsvalueis the text of the floating-point literal exactly as it appears in the source code.static intIDENTIFIERThe token represents an identifier.static intINTEGER_LITERALThe token represents an integer literal; itsvalueis the text of the integer literal exactly as it appears in the source code.static intKEYWORDThe token represents a keyword.static intNULL_LITERALThe token represents thenullliteral; itsvalueis 'null'.static intOPERATORThe token represents an operator; itsvalueis exactly the particular operator (e.g.static intSTRING_LITERALThe token represents a string literal; itsvalueis the text of the string literal exactly as it appears in the source code (including the double quotes around it).inttypeThe type of this token; legal values are the various public constant declared in this class.StringvalueThe text of the token exactly as it appears in the source code.
-
-
-
Field Detail
-
type
public final int type
The type of this token; legal values are the various public constant declared in this class.
-
EOF
public static final int EOF
Indication of the 'end-of-input' condition.- See Also:
- Constant Field Values
-
IDENTIFIER
public static final int IDENTIFIER
The token represents an identifier.- See Also:
- Constant Field Values
-
KEYWORD
public static final int KEYWORD
The token represents a keyword.- See Also:
- Constant Field Values
-
INTEGER_LITERAL
public static final int INTEGER_LITERAL
The token represents an integer literal; itsvalueis the text of the integer literal exactly as it appears in the source code.- See Also:
- Constant Field Values
-
FLOATING_POINT_LITERAL
public static final int FLOATING_POINT_LITERAL
The token represents a floating-point literal; itsvalueis the text of the floating-point literal exactly as it appears in the source code.- See Also:
- Constant Field Values
-
BOOLEAN_LITERAL
public static final int BOOLEAN_LITERAL
The token represents a boolean literal; itsvalueis either 'true' or 'false'.- See Also:
- Constant Field Values
-
CHARACTER_LITERAL
public static final int CHARACTER_LITERAL
The token represents a character literal; itsvalueis the text of the character literal exactly as it appears in the source code (including the single quotes around it).- See Also:
- Constant Field Values
-
STRING_LITERAL
public static final int STRING_LITERAL
The token represents a string literal; itsvalueis the text of the string literal exactly as it appears in the source code (including the double quotes around it).- See Also:
- Constant Field Values
-
NULL_LITERAL
public static final int NULL_LITERAL
The token represents thenullliteral; itsvalueis 'null'.- See Also:
- Constant Field Values
-
OPERATOR
public static final int OPERATOR
The token represents an operator; itsvalueis exactly the particular operator (e.g. "<<<=").- See Also:
- Constant Field Values
-
value
public final String value
The text of the token exactly as it appears in the source code.
-
-