public abstract class ElementValue
extends java.lang.Object
element_value {
u1 tag;
union {
u2 const_value_index;
{ u2 type_name_index;
u2 const_name_index;
} enum_const_value;
u2 class_info_index;
annotation annotation_value;
{ u2 num_values;
element_value values[num_values];
} array_value;
} value;
}
| Modifier and Type | Field and Description |
|---|---|
static byte |
ANNOTATION |
static byte |
ARRAY |
static byte |
CLASS |
static byte |
ENUM_CONSTANT |
static byte |
PRIMITIVE_BOOLEAN |
static byte |
PRIMITIVE_BYTE |
static byte |
PRIMITIVE_CHAR |
static byte |
PRIMITIVE_DOUBLE |
static byte |
PRIMITIVE_FLOAT |
static byte |
PRIMITIVE_INT |
static byte |
PRIMITIVE_LONG |
static byte |
PRIMITIVE_SHORT |
static byte |
STRING |
| Modifier and Type | Method and Description |
|---|---|
static ElementValue |
readElementValue(java.io.DataInput input,
ConstantPool cpool)
Reads an
element_value as an ElementValue. |
static ElementValue |
readElementValue(java.io.DataInput input,
ConstantPool cpool,
int arrayNesting)
Reads an
element_value as an ElementValue. |
abstract java.lang.String |
stringifyValue() |
public static final byte STRING
public static final byte ENUM_CONSTANT
public static final byte CLASS
public static final byte ANNOTATION
public static final byte ARRAY
public static final byte PRIMITIVE_INT
public static final byte PRIMITIVE_BYTE
public static final byte PRIMITIVE_CHAR
public static final byte PRIMITIVE_DOUBLE
public static final byte PRIMITIVE_FLOAT
public static final byte PRIMITIVE_LONG
public static final byte PRIMITIVE_SHORT
public static final byte PRIMITIVE_BOOLEAN
public static ElementValue readElementValue(java.io.DataInput input, ConstantPool cpool) throws java.io.IOException
element_value as an ElementValue.input - Raw data input.cpool - Constant pool.java.io.IOException - if an I/O error occurs.public static ElementValue readElementValue(java.io.DataInput input, ConstantPool cpool, int arrayNesting) throws java.io.IOException
element_value as an ElementValue.input - Raw data input.cpool - Constant pool.arrayNesting - level of current array nesting.java.io.IOException - if an I/O error occurs.public abstract java.lang.String stringifyValue()
Copyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.