Enum Class CKeyword
- All Implemented Interfaces:
Serializable
,Comparable<CKeyword>
,Constable
C keywords and reserved tokens.
-
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
(COutputSink out, CKeyword keyword) static void
generateAccessFlags
(COutputSink out, int f, int add_final_space, CEntityType etype) static void
generateClassAccessFlags
(COutputSink out, int f, int add_final_space) static void
generateFieldAccessFlags
(COutputSink out, int f, int add_final_space) static void
generateMethodAccessFlags
(COutputSink out, int f, int add_final_space) static CKeyword
Returns the enum constant of this class with the specified name.static CKeyword[]
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
-
VIRTUAL
-
-
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
-
generateMethodAccessFlags
-
generateFieldAccessFlags
-
generateAccessFlags
public static void generateAccessFlags(COutputSink out, int f, int add_final_space, CEntityType etype) - Parameters:
out
-f
- flags, as defined inCFlags
add_final_space
- 1=append a trailing space; -1=append a trailing space only if the access flags string is not empty; 0=no final spaceetype
- the type entity that these access flags apply to
-
appendAccessKeyword
-