- All Implemented Interfaces:
Serializable,Comparable<TypeKind>,Constable
The kind of a type, which can be one of the primitive types, a reference type, or
void.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the loadable type kind for this type kind.static TypeKindReturns the type kind for the given class.static TypeKindReturns the type kind for the given descriptor.static TypeKindReturns the type kind for the given descriptor string.intslotSize()Returns the number of variable or stack slots required by values of this type.Returns the most specific class descriptor for this type kind.static TypeKindReturns the enum constant of this class with the specified name.static TypeKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
-
BYTE
-
CHAR
-
SHORT
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
REFERENCE
-
VOID
-
-
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
-
upperBound
Returns the most specific class descriptor for this type kind.- Returns:
- the most specific class descriptor for this type kind
-
slotSize
public int slotSize()Returns the number of variable or stack slots required by values of this type.- Returns:
- the number of variable or stack slots required by values of this type
-
asLoadable
Returns the loadable type kind for this type kind.- Returns:
- the loadable type kind for this type kind
-
from
Returns the type kind for the given descriptor string.- Parameters:
descriptor- the descriptor string (must not benull)- Returns:
- the type kind for the given descriptor string
-
from
Returns the type kind for the given descriptor.- Parameters:
descriptor- the descriptor (must not benull)- Returns:
- the type kind for the given descriptor
-
from
Returns the type kind for the given class.- Parameters:
clazz- the class (must not benull)- Returns:
- the type kind for the given class
-