public class Constant
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
CLASS
Constant tag for class types.
|
static byte |
DOUBLE
Constant tag for double constants.
|
static byte |
FIELD_REF
Constant tag for field references.
|
static byte |
FLOAT
Constant tag for float constants.
|
static byte |
INTEGER
Constant tag for int, short, byte, char, and boolean constants.
|
static byte |
INTERFACE_METHOD_REF
Constant tag for method references.
|
static byte |
INVOKE_DYNAMIC
Constant tag for holding a bootstrap method.
|
static byte |
LONG
Constant tag for long constants.
|
static byte |
METHOD_HANDLE
Constant tag for holding a method handle.
|
static byte |
METHOD_REF
Constant tag for method references.
|
static byte |
METHOD_TYPE
Constant tag for holding a method type.
|
static byte |
NAME_AND_TYPE
Constant tag for holding the name and type of a field or method.
|
static byte |
STRING
Constant tag for java.lang.String constants.
|
protected int |
tag |
static byte |
UTF8
Constant tag for holding a UTF8 format string.
|
protected java.lang.Object |
value |
protected int tag
protected java.lang.Object value
public static final byte CLASS
public static final byte FIELD_REF
public static final byte METHOD_REF
public static final byte STRING
public static final byte INTEGER
public static final byte FLOAT
public static final byte LONG
public static final byte DOUBLE
public static final byte INTERFACE_METHOD_REF
public static final byte NAME_AND_TYPE
public static final byte UTF8
public static final byte METHOD_HANDLE
public static final byte METHOD_TYPE
public static final byte INVOKE_DYNAMIC
public final int tag()
public final java.lang.Object value()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- The object to compare against.