public static enum SinkReturns.TokenType extends java.lang.Enum<SinkReturns.TokenType>
Enum Constant and Description |
---|
COMMENT |
EOF |
EXPLICIT_INDENT |
FIELD |
IDENTIFIER |
INDENT |
KEYWORD |
LABEL |
LITERAL |
METHOD |
NEWLINE |
OPERATOR |
SEPARATOR |
UNCLASSIFIED |
UNINDENT |
WHITESPACE |
Modifier and Type | Field and Description |
---|---|
private boolean |
control |
Modifier and Type | Method and Description |
---|---|
boolean |
isControl()
Is this a 'control' token? I.e.
|
static SinkReturns.TokenType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SinkReturns.TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SinkReturns.TokenType WHITESPACE
public static final SinkReturns.TokenType KEYWORD
public static final SinkReturns.TokenType OPERATOR
public static final SinkReturns.TokenType SEPARATOR
public static final SinkReturns.TokenType LITERAL
public static final SinkReturns.TokenType COMMENT
public static final SinkReturns.TokenType IDENTIFIER
public static final SinkReturns.TokenType FIELD
public static final SinkReturns.TokenType METHOD
public static final SinkReturns.TokenType LABEL
public static final SinkReturns.TokenType NEWLINE
public static final SinkReturns.TokenType UNCLASSIFIED
public static final SinkReturns.TokenType EOF
public static final SinkReturns.TokenType INDENT
public static final SinkReturns.TokenType UNINDENT
public static final SinkReturns.TokenType EXPLICIT_INDENT
public static SinkReturns.TokenType[] values()
for (SinkReturns.TokenType c : SinkReturns.TokenType.values()) System.out.println(c);
public static SinkReturns.TokenType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isControl()