| Enum Constant and Description |
|---|
Array |
Boolean |
Byte |
Character |
Double |
Float |
Integer |
Long |
Object |
Short |
TypeVariable |
Void |
Wildcard |
| Modifier and Type | Method and Description |
|---|---|
int |
bitWidth() |
static JvmType |
forClass(java.lang.Class<?> clazz) |
static JvmType |
forValue(java.lang.Object value,
boolean unboxPrimitives) |
java.lang.String |
getDescriptorPrefix() |
java.lang.String |
getPrimitiveName() |
boolean |
isDoubleWord() |
boolean |
isFloating() |
boolean |
isIntegral() |
boolean |
isNumeric() |
boolean |
isOther() |
boolean |
isPrimitive() |
boolean |
isPrimitiveOrVoid() |
boolean |
isSigned() |
boolean |
isSingleWord() |
boolean |
isSubWordOrInt32() |
boolean |
isUnsigned() |
int |
stackSlots() |
static JvmType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JvmType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JvmType Boolean
public static final JvmType Byte
public static final JvmType Character
public static final JvmType Short
public static final JvmType Integer
public static final JvmType Long
public static final JvmType Float
public static final JvmType Double
public static final JvmType Object
public static final JvmType Array
public static final JvmType TypeVariable
public static final JvmType Wildcard
public static final JvmType Void
public static JvmType[] values()
for (JvmType c : JvmType.values()) System.out.println(c);
public static JvmType 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 final java.lang.String getDescriptorPrefix()
public final java.lang.String getPrimitiveName()
public final boolean isPrimitive()
public final boolean isPrimitiveOrVoid()
public final int bitWidth()
public final int stackSlots()
public final boolean isSingleWord()
public final boolean isDoubleWord()
public final boolean isNumeric()
public final boolean isIntegral()
public final boolean isSubWordOrInt32()
public final boolean isSigned()
public final boolean isUnsigned()
public final boolean isFloating()
public final boolean isOther()
public static JvmType forClass(java.lang.Class<?> clazz)
public static JvmType forValue(java.lang.Object value, boolean unboxPrimitives)