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