public enum JavaTokenType extends Enum<JavaTokenType> implements com.sonar.sslr.api.TokenType, org.sonar.sslr.grammar.GrammarRuleKey
| Enum Constant and Description |
|---|
CHARACTER_LITERAL |
DOUBLE_LITERAL |
FLOAT_LITERAL |
IDENTIFIER |
INTEGER_LITERAL |
LITERAL |
LONG_LITERAL |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getValue() |
boolean |
hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node) |
static JavaTokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaTokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaTokenType CHARACTER_LITERAL
public static final JavaTokenType INTEGER_LITERAL
public static final JavaTokenType FLOAT_LITERAL
public static final JavaTokenType LONG_LITERAL
public static final JavaTokenType DOUBLE_LITERAL
public static final JavaTokenType LITERAL
public static final JavaTokenType IDENTIFIER
public static JavaTokenType[] values()
for (JavaTokenType c : JavaTokenType.values()) System.out.println(c);
public static JavaTokenType 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 String getName()
getName in interface com.sonar.sslr.api.TokenTypepublic String getValue()
getValue in interface com.sonar.sslr.api.TokenTypepublic boolean hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node)
hasToBeSkippedFromAst in interface com.sonar.sslr.api.TokenTypeCopyright © 2012–2015 SonarSource. All rights reserved.