Enum Class JavaKeyword
- All Implemented Interfaces:
Serializable
,Comparable<JavaKeyword>
,Constable
Java keywords and reserved tokens.
- See Also:
-
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 TypeMethodDescriptionstatic void
appendAccessKeyword
(JavaOutputSink out, JavaKeyword keyword) Generate a Java keyword into an AST sink.static void
generateAccessFlags
(JavaOutputSink out, int f, int addFinalSpace, int entityType) Generate some Java flags into an AST sink.static void
generateClassAccessFlags
(JavaOutputSink out, int f, int add_final_space) static void
generateFieldAccessFlags
(JavaOutputSink out, int f, int add_final_space) static void
generateMethodAccessFlags
(JavaOutputSink out, int f, int add_final_space) 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
-
ABSTRACT
-
ASSERT
-
BOOLEAN
-
BREAK
-
BYTE
-
CASE
-
CATCH
-
CHAR
-
CLASS
-
CONST
-
CONTINUE
-
DEFAULT
-
DO
-
DOUBLE
-
ELSE
-
ENUM
-
EXTENDS
-
FINAL
-
FINALLY
-
FLOAT
-
FOR
-
GOTO
-
IF
-
IMPLEMENTS
-
IMPORT
-
INSTANCEOF
-
INT
-
INTERFACE
-
LONG
-
NATIVE
-
NEW
-
PACKAGE
-
PRIVATE
-
PROTECTED
-
PUBLIC
-
RETURN
-
SHORT
-
STATIC
-
STRICTFP
-
SUPER
-
SWITCH
-
SYNCHRONIZED
-
THIS
-
THROW
-
THROWS
-
TRANSIENT
-
TRY
-
VOID
-
VOLATILE
-
WHILE
-
TRUE
-
FALSE
-
NULL
-
-
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
-
generateClassAccessFlags
-
generateFieldAccessFlags
-
generateMethodAccessFlags
-
generateAccessFlags
public static void generateAccessFlags(JavaOutputSink out, int f, int addFinalSpace, int entityType) Generate some Java flags into an AST sink.- Parameters:
out
- output sinkf
- flags, as defined inJavaFlags
addFinalSpace
- 0=no final space; 1=always append a trailing space; -1=append a trailing space only if the access flags string is not emptyentityType
- the type entity that these access flags apply to: 0=class, 1=field, 2=method
-
appendAccessKeyword
Generate a Java keyword into an AST sink.- Parameters:
out
-keyword
-
-