public enum Keyword extends java.lang.Enum<Keyword> implements Token
Keyword
denotes the nonterminal symbol Keyword, as defined by the Java Language Specification.
If the Java Language Specification is updated in a way that affects any keywords, this enum may be updated to reflect those changes. This means that new elements could be added. But it's highly unlikely.
Enum Constant and Description |
---|
ABSTRACT
A
Keyword with a String representation that equals the String literal "abstract" . |
ASSERT
A
Keyword with a String representation that equals the String literal "assert" . |
BOOLEAN
A
Keyword with a String representation that equals the String literal "boolean" . |
BREAK
A
Keyword with a String representation that equals the String literal "break" . |
BYTE
A
Keyword with a String representation that equals the String literal "byte" . |
CASE
A
Keyword with a String representation that equals the String literal "case" . |
CATCH
A
Keyword with a String representation that equals the String literal "catch" . |
CHAR
A
Keyword with a String representation that equals the String literal "char" . |
CLASS
A
Keyword with a String representation that equals the String literal "class" . |
CONST
A
Keyword with a String representation that equals the String literal "const" . |
CONTINUE
A
Keyword with a String representation that equals the String literal "continue" . |
DEFAULT
A
Keyword with a String representation that equals the String literal "default" . |
DO
A
Keyword with a String representation that equals the String literal "do" . |
DOUBLE
A
Keyword with a String representation that equals the String literal "double" . |
ELSE
A
Keyword with a String representation that equals the String literal "else" . |
ENUM
A
Keyword with a String representation that equals the String literal "enum" . |
EXTENDS
A
Keyword with a String representation that equals the String literal "extends" . |
FINAL
A
Keyword with a String representation that equals the String literal "final" . |
FINALLY
A
Keyword with a String representation that equals the String literal "finally" . |
FLOAT
A
Keyword with a String representation that equals the String literal "float" . |
FOR
A
Keyword with a String representation that equals the String literal "for" . |
GO_TO
A
Keyword with a String representation that equals the String literal "goto" . |
IF
A
Keyword with a String representation that equals the String literal "if" . |
IMPLEMENTS
A
Keyword with a String representation that equals the String literal "implements" . |
IMPORT
A
Keyword with a String representation that equals the String literal "import" . |
INSTANCE_OF
A
Keyword with a String representation that equals the String literal "instanceof" . |
INT
A
Keyword with a String representation that equals the String literal "int" . |
INTERFACE
A
Keyword with a String representation that equals the String literal "interface" . |
LONG
A
Keyword with a String representation that equals the String literal "long" . |
NATIVE
A
Keyword with a String representation that equals the String literal "native" . |
NEW
A
Keyword with a String representation that equals the String literal "new" . |
PACKAGE
A
Keyword with a String representation that equals the String literal "package" . |
PRIVATE
A
Keyword with a String representation that equals the String literal "private" . |
PROTECTED
A
Keyword with a String representation that equals the String literal "protected" . |
PUBLIC
A
Keyword with a String representation that equals the String literal "public" . |
RETURN
A
Keyword with a String representation that equals the String literal "return" . |
SHORT
A
Keyword with a String representation that equals the String literal "short" . |
STATIC
A
Keyword with a String representation that equals the String literal "static" . |
STRICT_F_P
A
Keyword with a String representation that equals the String literal "strictfp" . |
SUPER
A
Keyword with a String representation that equals the String literal "super" . |
SWITCH
A
Keyword with a String representation that equals the String literal "switch" . |
SYNCHRONIZED
A
Keyword with a String representation that equals the String literal "synchronized" . |
THIS
A
Keyword with a String representation that equals the String literal "this" . |
THROW
A
Keyword with a String representation that equals the String literal "throw" . |
THROWS
A
Keyword with a String representation that equals the String literal "throws" . |
TRANSIENT
A
Keyword with a String representation that equals the String literal "transient" . |
TRY
A
Keyword with a String representation that equals the String literal "try" . |
WHILE
A
Keyword with a String representation that equals the String literal "while" . |
VOID
A
Keyword with a String representation that equals the String literal "void" . |
VOLATILE
A
Keyword with a String representation that equals the String literal "volatile" . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a
String representation of this Keyword instance. |
static Keyword |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Keyword[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Keyword ABSTRACT
Keyword
with a String
representation that equals the String
literal "abstract"
.public static final Keyword ASSERT
Keyword
with a String
representation that equals the String
literal "assert"
.public static final Keyword BOOLEAN
Keyword
with a String
representation that equals the String
literal "boolean"
.public static final Keyword BREAK
Keyword
with a String
representation that equals the String
literal "break"
.public static final Keyword BYTE
Keyword
with a String
representation that equals the String
literal "byte"
.public static final Keyword CASE
Keyword
with a String
representation that equals the String
literal "case"
.public static final Keyword CATCH
Keyword
with a String
representation that equals the String
literal "catch"
.public static final Keyword CHAR
Keyword
with a String
representation that equals the String
literal "char"
.public static final Keyword CLASS
Keyword
with a String
representation that equals the String
literal "class"
.public static final Keyword CONST
Keyword
with a String
representation that equals the String
literal "const"
.public static final Keyword CONTINUE
Keyword
with a String
representation that equals the String
literal "continue"
.public static final Keyword DEFAULT
Keyword
with a String
representation that equals the String
literal "default"
.public static final Keyword DO
Keyword
with a String
representation that equals the String
literal "do"
.public static final Keyword DOUBLE
Keyword
with a String
representation that equals the String
literal "double"
.public static final Keyword ELSE
Keyword
with a String
representation that equals the String
literal "else"
.public static final Keyword ENUM
Keyword
with a String
representation that equals the String
literal "enum"
.public static final Keyword EXTENDS
Keyword
with a String
representation that equals the String
literal "extends"
.public static final Keyword FINAL
Keyword
with a String
representation that equals the String
literal "final"
.public static final Keyword FINALLY
Keyword
with a String
representation that equals the String
literal "finally"
.public static final Keyword FLOAT
Keyword
with a String
representation that equals the String
literal "float"
.public static final Keyword FOR
Keyword
with a String
representation that equals the String
literal "for"
.public static final Keyword GO_TO
Keyword
with a String
representation that equals the String
literal "goto"
.public static final Keyword IF
Keyword
with a String
representation that equals the String
literal "if"
.public static final Keyword IMPLEMENTS
Keyword
with a String
representation that equals the String
literal "implements"
.public static final Keyword IMPORT
Keyword
with a String
representation that equals the String
literal "import"
.public static final Keyword INSTANCE_OF
Keyword
with a String
representation that equals the String
literal "instanceof"
.public static final Keyword INT
Keyword
with a String
representation that equals the String
literal "int"
.public static final Keyword INTERFACE
Keyword
with a String
representation that equals the String
literal "interface"
.public static final Keyword LONG
Keyword
with a String
representation that equals the String
literal "long"
.public static final Keyword NATIVE
Keyword
with a String
representation that equals the String
literal "native"
.public static final Keyword NEW
Keyword
with a String
representation that equals the String
literal "new"
.public static final Keyword PACKAGE
Keyword
with a String
representation that equals the String
literal "package"
.public static final Keyword PRIVATE
Keyword
with a String
representation that equals the String
literal "private"
.public static final Keyword PROTECTED
Keyword
with a String
representation that equals the String
literal "protected"
.public static final Keyword PUBLIC
Keyword
with a String
representation that equals the String
literal "public"
.public static final Keyword RETURN
Keyword
with a String
representation that equals the String
literal "return"
.public static final Keyword SHORT
Keyword
with a String
representation that equals the String
literal "short"
.public static final Keyword STATIC
Keyword
with a String
representation that equals the String
literal "static"
.public static final Keyword STRICT_F_P
Keyword
with a String
representation that equals the String
literal "strictfp"
.public static final Keyword SUPER
Keyword
with a String
representation that equals the String
literal "super"
.public static final Keyword SWITCH
Keyword
with a String
representation that equals the String
literal "switch"
.public static final Keyword SYNCHRONIZED
Keyword
with a String
representation that equals the String
literal "synchronized"
.public static final Keyword THIS
Keyword
with a String
representation that equals the String
literal "this"
.public static final Keyword THROW
Keyword
with a String
representation that equals the String
literal "throw"
.public static final Keyword THROWS
Keyword
with a String
representation that equals the String
literal "throws"
.public static final Keyword TRANSIENT
Keyword
with a String
representation that equals the String
literal "transient"
.public static final Keyword TRY
Keyword
with a String
representation that equals the String
literal "try"
.public static final Keyword VOID
Keyword
with a String
representation that equals the String
literal "void"
.public static final Keyword VOLATILE
Keyword
with a String
representation that equals the String
literal "volatile"
.public static final Keyword WHILE
Keyword
with a String
representation that equals the String
literal "while"
.public static Keyword[] values()
for (Keyword c : Keyword.values()) System.out.println(c);
public static Keyword valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
String
representation of this Keyword
instance.toString
in class java.lang.Enum<Keyword>
String
representation of this Keyword
instance