returnAddress (JVMS 2.3.3) and includes void (JVMS
4.3.3), which appears as a method return type.
The returnAddress type is only used by discontinued
jump subroutine and
return from subroutine
instructions. Jump subroutine instructions push returnAddress to the
operand stack; astore instructions store returnAddress from the operand stack to local variables; return from
subroutine instructions load returnAddress from local variables.
class file format, local variables (JVMS 2.6.1),
and the operand stack (JVMS 2.6.2) of the Java Virtual Machine,
boolean, byte, char,
short types do not exist and are represented by the int computational type.
int, float, reference,
returnAddress, long, and doule
are the computational types of the Java Virtual Machine.
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeKind | BOOLEAN
The primitive type |
| public static final TypeKind | BYTE
The primitive type |
| public static final TypeKind | CHAR
The primitive type |
| public static final TypeKind | DOUBLE
The primitive type |
| public static final TypeKind | FLOAT
The primitive type |
| public static final TypeKind | INT
The primitive type |
| public static final TypeKind | LONG
The primitive type |
| private final int | |
| public static final TypeKind | REFERENCE
A reference type. |
| public static final TypeKind | SHORT
The primitive type |
| private final int | |
| private ClassDesc | |
| public static final TypeKind | VOID
The |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public TypeKind | |
| private ClassDesc | |
| public static TypeKind | Returns: the type associated with the specified field descriptorthe field descriptor descriptorReturns the type associated with the specified field descriptor. |
| public static TypeKind | Returns: the type associated with the specified field descriptorthe field descriptor s)Returns the type associated with the specified field descriptor. |
| public static TypeKind | Returns: the component type described by the array code used as an operand tonewarraythe operand of the newarrayCode)newarray instructionReturns the component type described by the array code used as an operand to |
| public int | Returns: the code used by thenewarray instruction to create an array
of this component type, or -1 if this type is not supported by newarrayReturns the code used by the |
| public int | Returns: the number of local variable index or operand stack depth consumed by this typeReturns the number of local variable index or operand stack depth consumed by this type. |
| public ClassDesc | Returns: the most specific upper bound field descriptor that can store any value of this typeReturns the most specific upper bound field descriptor that can store any value of this type. |
| public static TypeKind | |
| public static TypeKind[] |
| BOOLEAN | back to summary |
|---|---|
| public static final TypeKind BOOLEAN The primitive type
| |
| BYTE | back to summary |
|---|---|
| public static final TypeKind BYTE The primitive type | |
| CHAR | back to summary |
|---|---|
| public static final TypeKind CHAR The primitive type | |
| DOUBLE | back to summary |
|---|---|
| public static final TypeKind DOUBLE The primitive type | |
| FLOAT | back to summary |
|---|---|
| public static final TypeKind FLOAT The primitive type | |
| INT | back to summary |
|---|---|
| public static final TypeKind INT The primitive type | |
| LONG | back to summary |
|---|---|
| public static final TypeKind LONG The primitive type | |
| newarrayCode | back to summary |
|---|---|
| private final int newarrayCode | |
| REFERENCE | back to summary |
|---|---|
| public static final TypeKind REFERENCE A reference type.
| |
| SHORT | back to summary |
|---|---|
| public static final TypeKind SHORT The primitive type | |
| slots | back to summary |
|---|---|
| private final int slots | |
| upperBound | back to summary |
|---|---|
| private ClassDesc upperBound
| |
| VOID | back to summary |
|---|---|
| public static final TypeKind VOID The
| |
| TypeKind | back to summary |
|---|---|
| private TypeKind(int slots, int newarrayCode) | |
| asLoadable | back to summary |
|---|---|
| public TypeKind asLoadable() Returns the computational type for this type, or
| |
| fetchUpperBound | back to summary |
|---|---|
| private ClassDesc fetchUpperBound() | |
| from | back to summary |
|---|---|
| public static TypeKind from(TypeDescriptor. Returns the type associated with the specified field descriptor.
| |
| fromDescriptor | back to summary |
|---|---|
| public static TypeKind fromDescriptor(CharSequence s) Returns the type associated with the specified field descriptor.
| |
| fromNewarrayCode | back to summary |
|---|---|
| public static TypeKind fromNewarrayCode(int newarrayCode) Returns the component type described by the array code used as an operand to
| |
| newarrayCode | back to summary |
|---|---|
| public int newarrayCode() Returns the code used by the
| |
| slotSize | back to summary |
|---|---|
| public int slotSize() Returns the number of local variable index or operand stack depth consumed by this type.
This is also the category of this type for instructions operating on the operand stack without
regard to type (JVMS 2.11.1), such as
| |
| upperBound | back to summary |
|---|---|
| public ClassDesc upperBound() Returns the most specific upper bound field descriptor that can store any value
of this type. This is the primitive class descriptor for primitive types and
| |
| valueOf | back to summary |
|---|---|
| public static TypeKind valueOf(String name) | |
| values | back to summary |
|---|---|
| public static TypeKind[] values() | |