public enum GenericTokenType extends Enum<GenericTokenType> implements TokenType
| Enum Constant and Description |
|---|
COMMENT |
CONSTANT |
EOF |
EOL |
IDENTIFIER |
LITERAL |
UNKNOWN_CHAR |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getValue() |
boolean |
hasToBeSkippedFromAst(AstNode node) |
static GenericTokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GenericTokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GenericTokenType COMMENT
public static final GenericTokenType IDENTIFIER
public static final GenericTokenType LITERAL
public static final GenericTokenType CONSTANT
public static final GenericTokenType EOF
public static final GenericTokenType EOL
public static final GenericTokenType UNKNOWN_CHAR
public static GenericTokenType[] values()
for (GenericTokenType c : GenericTokenType.values()) System.out.println(c);
public static GenericTokenType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean hasToBeSkippedFromAst(AstNode node)
hasToBeSkippedFromAst in interface TokenTypeCopyright © 2009–2018 SonarSource. All rights reserved.