org.sonar.javascript.api
Enum EcmaScriptKeyword

java.lang.Object
  extended by java.lang.Enum<EcmaScriptKeyword>
      extended by 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


Enum Constant Summary
BREAK
           
CASE
           
CATCH
           
CLASS
           
CONST
           
CONTINUE
           
DEBUGGER
           
DEFAULT
           
DELETE
           
DO
           
ELSE
           
ENUM
           
EXPORT
           
EXTENDS
           
FALSE
           
FINALLY
           
FOR
           
FUNCTION
           
IF
           
IN
           
INSTANCEOF
           
NEW
           
NULL
           
RETURN
           
SUPER
           
SWITCH
           
THIS
           
THROW
           
TRUE
           
TRY
           
TYPEOF
           
VAR
           
VOID
           
WHILE
           
WITH
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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

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

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

IN

public static final EcmaScriptKeyword IN

INSTANCEOF

public static final EcmaScriptKeyword INSTANCEOF

NEW

public static final EcmaScriptKeyword NEW

RETURN

public static final EcmaScriptKeyword RETURN

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

CLASS

public static final EcmaScriptKeyword CLASS

CONST

public static final EcmaScriptKeyword CONST

ENUM

public static final EcmaScriptKeyword ENUM

EXPORT

public static final EcmaScriptKeyword EXPORT

EXTENDS

public static final EcmaScriptKeyword EXTENDS

SUPER

public static final EcmaScriptKeyword SUPER
Method Detail

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.