Package org.jboss.jdeparser
Enum Tokens.$KW
- java.lang.Object
-
- java.lang.Enum<Tokens.$KW>
-
- org.jboss.jdeparser.Tokens.$KW
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Tokens.$KW>,Token,Writable
- Enclosing class:
- Tokens
static enum Tokens.$KW extends java.lang.Enum<Tokens.$KW> implements Token
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSTRACTASSERTAT_INTERFACEBOOLEANBREAKBYTECASECATCHCHARCLASSCONSTCONTINUEDEFAULTDODOUBLEELSEENUMEXTENDSFALSEFINALFINALLYFLOATFORGOTOIFIMPLEMENTSIMPORTINSTANCEOFINTINTERFACELONGNATIVENEWNULLPACKAGEPRIVATEPROTECTEDPUBLICRETURNSHORTSTATICSTRICTFPSUPERSWITCHSYNCHRONIZEDTHISTHROWTHROWSTRANSIENTTRUETRYVOIDVOLATILEWHILE
-
Field Summary
Fields Modifier and Type Field Description private FormatPreferences.Spaceafterprivate FormatPreferences.Spacebeforeprivate java.lang.Stringkw
-
Constructor Summary
Constructors Modifier Constructor Description private$KW(java.lang.String name, FormatPreferences.Space before, FormatPreferences.Space after)private$KW(FormatPreferences.Space before, FormatPreferences.Space after)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static TokenforName(java.lang.String keyword)(package private) java.lang.StringgetKeyword()static Tokens.$KWvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Tokens.$KW[]values()Returns an array containing the constants of this enum type, in the order they are declared.voidwrite(SourceFileWriter writer)
-
-
-
Enum Constant Detail
-
AT_INTERFACE
public static final Tokens.$KW AT_INTERFACE
-
ABSTRACT
public static final Tokens.$KW ABSTRACT
-
ASSERT
public static final Tokens.$KW ASSERT
-
BOOLEAN
public static final Tokens.$KW BOOLEAN
-
BREAK
public static final Tokens.$KW BREAK
-
BYTE
public static final Tokens.$KW BYTE
-
CASE
public static final Tokens.$KW CASE
-
CATCH
public static final Tokens.$KW CATCH
-
CHAR
public static final Tokens.$KW CHAR
-
CLASS
public static final Tokens.$KW CLASS
-
CONST
public static final Tokens.$KW CONST
-
CONTINUE
public static final Tokens.$KW CONTINUE
-
DEFAULT
public static final Tokens.$KW DEFAULT
-
DO
public static final Tokens.$KW DO
-
DOUBLE
public static final Tokens.$KW DOUBLE
-
ELSE
public static final Tokens.$KW ELSE
-
ENUM
public static final Tokens.$KW ENUM
-
EXTENDS
public static final Tokens.$KW EXTENDS
-
FINAL
public static final Tokens.$KW FINAL
-
FINALLY
public static final Tokens.$KW FINALLY
-
FLOAT
public static final Tokens.$KW FLOAT
-
FOR
public static final Tokens.$KW FOR
-
GOTO
public static final Tokens.$KW GOTO
-
IF
public static final Tokens.$KW IF
-
IMPLEMENTS
public static final Tokens.$KW IMPLEMENTS
-
IMPORT
public static final Tokens.$KW IMPORT
-
INSTANCEOF
public static final Tokens.$KW INSTANCEOF
-
INT
public static final Tokens.$KW INT
-
INTERFACE
public static final Tokens.$KW INTERFACE
-
LONG
public static final Tokens.$KW LONG
-
NATIVE
public static final Tokens.$KW NATIVE
-
NEW
public static final Tokens.$KW NEW
-
PACKAGE
public static final Tokens.$KW PACKAGE
-
PRIVATE
public static final Tokens.$KW PRIVATE
-
PROTECTED
public static final Tokens.$KW PROTECTED
-
PUBLIC
public static final Tokens.$KW PUBLIC
-
RETURN
public static final Tokens.$KW RETURN
-
SHORT
public static final Tokens.$KW SHORT
-
STATIC
public static final Tokens.$KW STATIC
-
STRICTFP
public static final Tokens.$KW STRICTFP
-
SUPER
public static final Tokens.$KW SUPER
-
SWITCH
public static final Tokens.$KW SWITCH
-
SYNCHRONIZED
public static final Tokens.$KW SYNCHRONIZED
-
THIS
public static final Tokens.$KW THIS
-
THROW
public static final Tokens.$KW THROW
-
THROWS
public static final Tokens.$KW THROWS
-
TRANSIENT
public static final Tokens.$KW TRANSIENT
-
TRY
public static final Tokens.$KW TRY
-
VOID
public static final Tokens.$KW VOID
-
VOLATILE
public static final Tokens.$KW VOLATILE
-
WHILE
public static final Tokens.$KW WHILE
-
FALSE
public static final Tokens.$KW FALSE
-
TRUE
public static final Tokens.$KW TRUE
-
NULL
public static final Tokens.$KW NULL
-
-
Field Detail
-
kw
private final java.lang.String kw
-
before
private final FormatPreferences.Space before
-
after
private final FormatPreferences.Space after
-
-
Constructor Detail
-
$KW
private $KW(FormatPreferences.Space before, FormatPreferences.Space after)
-
$KW
private $KW(java.lang.String name, FormatPreferences.Space before, FormatPreferences.Space after)
-
-
Method Detail
-
values
public static Tokens.$KW[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Tokens.$KW c : Tokens.$KW.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tokens.$KW valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getKeyword
java.lang.String getKeyword()
-
write
public void write(SourceFileWriter writer) throws java.io.IOException
-
forName
static Token forName(java.lang.String keyword)
-
-