public enum EcmaScriptKeyword extends Enum<EcmaScriptKeyword> implements com.sonar.sslr.api.TokenType, org.sonar.sslr.grammar.GrammarRuleKey
| Enum Constant and Description |
|---|
BREAK |
CASE |
CATCH |
CLASS |
CONST |
CONTINUE |
DEBUGGER |
DEFAULT |
DELETE |
DO |
ELSE |
ENUM |
EXPORT |
EXTENDS |
FALSE |
FINALLY |
FOR |
FUNCTION |
IF |
IMPORT |
IN |
INSTANCEOF |
NEW |
NULL |
RETURN |
SUPER |
SWITCH |
THIS |
THROW |
TRUE |
TRY |
TYPEOF |
VAR |
VOID |
WHILE |
WITH |
YIELD |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getValue() |
boolean |
hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node) |
static String[] |
keywordValues() |
static EcmaScriptKeyword |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EcmaScriptKeyword[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EcmaScriptKeyword NULL
public static final EcmaScriptKeyword TRUE
public static final EcmaScriptKeyword FALSE
public static final EcmaScriptKeyword BREAK
public static final EcmaScriptKeyword CASE
public static final EcmaScriptKeyword CATCH
public static final EcmaScriptKeyword CLASS
public static final EcmaScriptKeyword CONTINUE
public static final EcmaScriptKeyword DEBUGGER
public static final EcmaScriptKeyword DEFAULT
public static final EcmaScriptKeyword DELETE
public static final EcmaScriptKeyword DO
public static final EcmaScriptKeyword EXTENDS
public static final EcmaScriptKeyword ELSE
public static final EcmaScriptKeyword FINALLY
public static final EcmaScriptKeyword FOR
public static final EcmaScriptKeyword FUNCTION
public static final EcmaScriptKeyword IF
public static final EcmaScriptKeyword IMPORT
public static final EcmaScriptKeyword IN
public static final EcmaScriptKeyword INSTANCEOF
public static final EcmaScriptKeyword NEW
public static final EcmaScriptKeyword RETURN
public static final EcmaScriptKeyword SUPER
public static final EcmaScriptKeyword SWITCH
public static final EcmaScriptKeyword THIS
public static final EcmaScriptKeyword THROW
public static final EcmaScriptKeyword TRY
public static final EcmaScriptKeyword TYPEOF
public static final EcmaScriptKeyword VAR
public static final EcmaScriptKeyword VOID
public static final EcmaScriptKeyword WHILE
public static final EcmaScriptKeyword WITH
public static final EcmaScriptKeyword YIELD
public static final EcmaScriptKeyword CONST
public static final EcmaScriptKeyword ENUM
public static final EcmaScriptKeyword EXPORT
public static EcmaScriptKeyword[] values()
for (EcmaScriptKeyword c : EcmaScriptKeyword.values()) System.out.println(c);
public static EcmaScriptKeyword 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.TokenTypepublic static String[] keywordValues()
Copyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.