public enum GenericTokenType extends java.lang.Enum<GenericTokenType> implements TokenType
Enum Constant and Description |
---|
COMMENT |
CONSTANT |
EOF |
EOL |
IDENTIFIER |
LITERAL |
UNKNOWN_CHAR |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.String |
getValue() |
boolean |
hasToBeSkippedFromAst(AstNode node) |
static GenericTokenType |
valueOf(java.lang.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(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 hasToBeSkippedFromAst(AstNode node)
hasToBeSkippedFromAst
in interface TokenType
Copyright © 2012 SonarSource. All Rights Reserved.