Package com.tonic.util
Enum DescriptorUtil.DescriptorCategory
- java.lang.Object
-
- java.lang.Enum<DescriptorUtil.DescriptorCategory>
-
- com.tonic.util.DescriptorUtil.DescriptorCategory
-
- All Implemented Interfaces:
Serializable,Comparable<DescriptorUtil.DescriptorCategory>
- Enclosing class:
- DescriptorUtil
public static enum DescriptorUtil.DescriptorCategory extends Enum<DescriptorUtil.DescriptorCategory>
Descriptor categories for JVM types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYAn array reference, written with one leading[per dimension.BOOLEANDescriptorZ, carried on the stack as an int.BYTEDescriptorB, carried on the stack as an int.CHARDescriptorC, carried on the stack as an unsigned int.DOUBLEDescriptorD, two slots wide.FLOATDescriptorF, one slot wide.INTDescriptorI, one slot wide.LONGDescriptorJ, two slots wide.OBJECTA class or interface reference, writtenLpkg/Name;.SHORTDescriptorS, carried on the stack as an int.VOIDDescriptorV, a return type only, occupying no slot.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DescriptorUtil.DescriptorCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static DescriptorUtil.DescriptorCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VOID
public static final DescriptorUtil.DescriptorCategory VOID
DescriptorV, a return type only, occupying no slot.
-
BOOLEAN
public static final DescriptorUtil.DescriptorCategory BOOLEAN
DescriptorZ, carried on the stack as an int.
-
BYTE
public static final DescriptorUtil.DescriptorCategory BYTE
DescriptorB, carried on the stack as an int.
-
CHAR
public static final DescriptorUtil.DescriptorCategory CHAR
DescriptorC, carried on the stack as an unsigned int.
-
SHORT
public static final DescriptorUtil.DescriptorCategory SHORT
DescriptorS, carried on the stack as an int.
-
INT
public static final DescriptorUtil.DescriptorCategory INT
DescriptorI, one slot wide.
-
LONG
public static final DescriptorUtil.DescriptorCategory LONG
DescriptorJ, two slots wide.
-
FLOAT
public static final DescriptorUtil.DescriptorCategory FLOAT
DescriptorF, one slot wide.
-
DOUBLE
public static final DescriptorUtil.DescriptorCategory DOUBLE
DescriptorD, two slots wide.
-
OBJECT
public static final DescriptorUtil.DescriptorCategory OBJECT
A class or interface reference, writtenLpkg/Name;.
-
ARRAY
public static final DescriptorUtil.DescriptorCategory ARRAY
An array reference, written with one leading[per dimension.
-
-
Method Detail
-
values
public static DescriptorUtil.DescriptorCategory[] 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 (DescriptorUtil.DescriptorCategory c : DescriptorUtil.DescriptorCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DescriptorUtil.DescriptorCategory valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-