de.unkrig.commons.text.scanner
Enum JavaScanner.TokenType
java.lang.Object
java.lang.Enum<JavaScanner.TokenType>
de.unkrig.commons.text.scanner.JavaScanner.TokenType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<JavaScanner.TokenType>
- Enclosing class:
- JavaScanner
public static enum JavaScanner.TokenType
- extends java.lang.Enum<JavaScanner.TokenType>
Token types of the JAVA programming language.
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SPACE
public static final JavaScanner.TokenType SPACE
CXX_COMMENT
public static final JavaScanner.TokenType CXX_COMMENT
SINGLE_LINE_C_COMMENT
public static final JavaScanner.TokenType SINGLE_LINE_C_COMMENT
MULTI_LINE_C_COMMENT_BEGINNING
public static final JavaScanner.TokenType MULTI_LINE_C_COMMENT_BEGINNING
MULTI_LINE_C_COMMENT_MIDDLE
public static final JavaScanner.TokenType MULTI_LINE_C_COMMENT_MIDDLE
MULTI_LINE_C_COMMENT_END
public static final JavaScanner.TokenType MULTI_LINE_C_COMMENT_END
END_OF_IGNORABLES
public static final JavaScanner.TokenType END_OF_IGNORABLES
KEYWORD
public static final JavaScanner.TokenType KEYWORD
IDENTIFIER
public static final JavaScanner.TokenType IDENTIFIER
SEPARATOR
public static final JavaScanner.TokenType SEPARATOR
OPERATOR
public static final JavaScanner.TokenType OPERATOR
STRING_LITERAL
public static final JavaScanner.TokenType STRING_LITERAL
CHARACTER_LITERAL
public static final JavaScanner.TokenType CHARACTER_LITERAL
INTEGER_LITERAL
public static final JavaScanner.TokenType INTEGER_LITERAL
FLOATING_POINT_LITERAL
public static final JavaScanner.TokenType FLOATING_POINT_LITERAL
values
public static JavaScanner.TokenType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (JavaScanner.TokenType c : JavaScanner.TokenType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JavaScanner.TokenType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null