Package org.openjdk.asmtools.jasm
Enum Tables.ConstType
- java.lang.Object
-
- java.lang.Enum<Tables.ConstType>
-
- org.openjdk.asmtools.jasm.Tables.ConstType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Tables.ConstType>
- Enclosing class:
- Tables
public static enum Tables.ConstType extends java.lang.Enum<Tables.ConstType>
ConstType A (typed) tag (constant) representing the type of Constant in the Constant Pool.
-
-
Enum Constant Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
ConstType(int val, java.lang.String print, java.lang.String parse)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
parseKey()
void
print(java.io.PrintWriter out)
java.lang.String
printval()
java.lang.String
toString()
int
value()
static Tables.ConstType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Tables.ConstType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSTANT_ZERO
public static final Tables.ConstType CONSTANT_ZERO
-
CONSTANT_UTF8
public static final Tables.ConstType CONSTANT_UTF8
-
CONSTANT_UNICODE
public static final Tables.ConstType CONSTANT_UNICODE
-
CONSTANT_INTEGER
public static final Tables.ConstType CONSTANT_INTEGER
-
CONSTANT_FLOAT
public static final Tables.ConstType CONSTANT_FLOAT
-
CONSTANT_LONG
public static final Tables.ConstType CONSTANT_LONG
-
CONSTANT_DOUBLE
public static final Tables.ConstType CONSTANT_DOUBLE
-
CONSTANT_CLASS
public static final Tables.ConstType CONSTANT_CLASS
-
CONSTANT_STRING
public static final Tables.ConstType CONSTANT_STRING
-
CONSTANT_FIELD
public static final Tables.ConstType CONSTANT_FIELD
-
CONSTANT_METHOD
public static final Tables.ConstType CONSTANT_METHOD
-
CONSTANT_INTERFACEMETHOD
public static final Tables.ConstType CONSTANT_INTERFACEMETHOD
-
CONSTANT_NAMEANDTYPE
public static final Tables.ConstType CONSTANT_NAMEANDTYPE
-
CONSTANT_METHODHANDLE
public static final Tables.ConstType CONSTANT_METHODHANDLE
-
CONSTANT_METHODTYPE
public static final Tables.ConstType CONSTANT_METHODTYPE
-
CONSTANT_DYNAMIC
public static final Tables.ConstType CONSTANT_DYNAMIC
-
CONSTANT_INVOKEDYNAMIC
public static final Tables.ConstType CONSTANT_INVOKEDYNAMIC
-
CONSTANT_MODULE
public static final Tables.ConstType CONSTANT_MODULE
-
CONSTANT_PACKAGE
public static final Tables.ConstType CONSTANT_PACKAGE
-
-
Field Detail
-
maxTag
public static final int maxTag
- See Also:
- Constant Field Values
-
value
private final int value
-
parseKey
private final java.lang.String parseKey
-
printval
private final java.lang.String printval
-
-
Method Detail
-
values
public static Tables.ConstType[] 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 (Tables.ConstType c : Tables.ConstType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tables.ConstType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
parseKey
public java.lang.String parseKey()
-
printval
public java.lang.String printval()
-
print
public void print(java.io.PrintWriter out)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Tables.ConstType>
-
-