Enum Constant and Description |
---|
NULL |
PRIMITIVE |
PRIMITIVE_CHAR |
REFERENCE |
REFERENCE_NOARG |
Modifier and Type | Method and Description |
---|---|
static ArgType |
getArgType(int value)
Obtain the enum from the value.
|
static java.lang.String |
getName(int value)
Obtain the name from the value.
|
int |
getValue()
Get the enum's value.
|
static ArgType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArgType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArgType PRIMITIVE
public static final ArgType PRIMITIVE_CHAR
public static final ArgType REFERENCE
public static final ArgType REFERENCE_NOARG
public static final ArgType NULL
public static ArgType[] values()
for (ArgType c : ArgType.values()) System.out.println(c);
public static ArgType 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 int getValue()
public static java.lang.String getName(int value)
value
- the value to match.null
.public static ArgType getArgType(int value)
value
- the value to match.null
.