Package org.sonar.java.ast.api
Enum Class JavaKeyword
- All Implemented Interfaces:
com.sonar.sslr.api.AstNodeType
,Serializable
,Comparable<JavaKeyword>
,Constable
,org.sonar.sslr.grammar.GrammarRuleKey
Keywords for java grammar.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getValue()
static String[]
keywords as String.static JavaKeyword
Returns the enum constant of this class with the specified name.static JavaKeyword[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASSERT
-
BREAK
-
CASE
-
CATCH
-
CLASS
-
CONTINUE
-
DEFAULT
-
DO
-
ELSE
-
ENUM
-
EXTENDS
-
FINALLY
-
FINAL
-
FOR
-
IF
-
IMPLEMENTS
-
IMPORT
-
INTERFACE
-
INSTANCEOF
-
NEW
-
PACKAGE
-
RETURN
-
STATIC
-
SUPER
-
SWITCH
-
SYNCHRONIZED
-
THIS
-
THROWS
-
THROW
-
TRY
-
VOID
-
WHILE
-
TRUE
-
FALSE
-
NULL
-
PUBLIC
-
PROTECTED
-
PRIVATE
-
ABSTRACT
-
NATIVE
-
TRANSIENT
-
VOLATILE
-
STRICTFP
-
BYTE
-
SHORT
-
CHAR
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
BOOLEAN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
-
getValue
-
keywordValues
keywords as String.- Returns:
- an array containing all keywords as typed in Java
-