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 voidappendAccessKeyword(COutputSink out, CKeyword keyword) static voidgenerateAccessFlags(COutputSink out, int f, int add_final_space, CEntityType etype) static voidgenerateClassAccessFlags(COutputSink out, int f, int add_final_space) static voidgenerateFieldAccessFlags(COutputSink out, int f, int add_final_space) static voidgenerateMethodAccessFlags(COutputSink out, int f, int add_final_space) static CKeywordReturns 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 inCFlagsadd_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
-