org.sonar.javascript.api
Enum EcmaScriptKeyword
java.lang.Object
java.lang.Enum<EcmaScriptKeyword>
org.sonar.javascript.api.EcmaScriptKeyword
- All Implemented Interfaces:
- com.sonar.sslr.api.AstNodeType, com.sonar.sslr.api.TokenType, Serializable, Comparable<EcmaScriptKeyword>, org.sonar.sslr.grammar.GrammarRuleKey
public enum EcmaScriptKeyword
- extends Enum<EcmaScriptKeyword>
- implements com.sonar.sslr.api.TokenType, org.sonar.sslr.grammar.GrammarRuleKey
NULL
public static final EcmaScriptKeyword NULL
TRUE
public static final EcmaScriptKeyword TRUE
FALSE
public static final EcmaScriptKeyword FALSE
BREAK
public static final EcmaScriptKeyword BREAK
CASE
public static final EcmaScriptKeyword CASE
CATCH
public static final EcmaScriptKeyword CATCH
CLASS
public static final EcmaScriptKeyword CLASS
CONTINUE
public static final EcmaScriptKeyword CONTINUE
DEBUGGER
public static final EcmaScriptKeyword DEBUGGER
DEFAULT
public static final EcmaScriptKeyword DEFAULT
DELETE
public static final EcmaScriptKeyword DELETE
DO
public static final EcmaScriptKeyword DO
EXTENDS
public static final EcmaScriptKeyword EXTENDS
ELSE
public static final EcmaScriptKeyword ELSE
FINALLY
public static final EcmaScriptKeyword FINALLY
FOR
public static final EcmaScriptKeyword FOR
FUNCTION
public static final EcmaScriptKeyword FUNCTION
IF
public static final EcmaScriptKeyword IF
IMPORT
public static final EcmaScriptKeyword IMPORT
IN
public static final EcmaScriptKeyword IN
INSTANCEOF
public static final EcmaScriptKeyword INSTANCEOF
NEW
public static final EcmaScriptKeyword NEW
RETURN
public static final EcmaScriptKeyword RETURN
SUPER
public static final EcmaScriptKeyword SUPER
SWITCH
public static final EcmaScriptKeyword SWITCH
THIS
public static final EcmaScriptKeyword THIS
THROW
public static final EcmaScriptKeyword THROW
TRY
public static final EcmaScriptKeyword TRY
TYPEOF
public static final EcmaScriptKeyword TYPEOF
VAR
public static final EcmaScriptKeyword VAR
VOID
public static final EcmaScriptKeyword VOID
WHILE
public static final EcmaScriptKeyword WHILE
WITH
public static final EcmaScriptKeyword WITH
YIELD
public static final EcmaScriptKeyword YIELD
CONST
public static final EcmaScriptKeyword CONST
ENUM
public static final EcmaScriptKeyword ENUM
EXPORT
public static final EcmaScriptKeyword EXPORT
values
public static EcmaScriptKeyword[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (EcmaScriptKeyword c : EcmaScriptKeyword.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static EcmaScriptKeyword valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getName
public String getName()
- Specified by:
getName in interface com.sonar.sslr.api.TokenType
getValue
public String getValue()
- Specified by:
getValue in interface com.sonar.sslr.api.TokenType
hasToBeSkippedFromAst
public boolean hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node)
- Specified by:
hasToBeSkippedFromAst in interface com.sonar.sslr.api.TokenType
keywordValues
public static String[] keywordValues()
Copyright © 2011-2014 SonarSource and Eriks Nukis. All Rights Reserved.