public enum JavaScriptTokenType extends Enum<JavaScriptTokenType> 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 JavaScriptTokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaScriptTokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaScriptTokenType IDENTIFIER
public static final JavaScriptTokenType NUMERIC_LITERAL
public static final JavaScriptTokenType REGULAR_EXPRESSION_LITERAL
public static final JavaScriptTokenType EMPTY
public static JavaScriptTokenType[] values()
for (JavaScriptTokenType c : JavaScriptTokenType.values()) System.out.println(c);
public static JavaScriptTokenType 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.