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 |
|---|---|
| public static final byte | |
| public static final byte | |
| public static final byte | |
| protected ConstantPool | cpool
Deprecated
(since 6.0) will be made private and final; do not access directly, use getter
|
| pack-priv static final ElementValue[] | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| protected int | type
Deprecated
(since 6.0) will be made private and final; do not access directly, use getter
|
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| pack-priv final ConstantPool | |
| public int | |
| pack-priv final int | |
| public static ElementValue | Returns: a new ElementValue.Raw data input. input, final ConstantPool Constant pool. cpool)Reads an |
| public static ElementValue | Returns: a new ElementValue.Raw data input. input, final ConstantPool Constant pool. cpool, int level of current array nesting. arrayNesting)Reads an |
| public abstract String | |
| public String | |
| public String |
| ANNOTATION | back to summary |
|---|---|
| public static final byte ANNOTATION | |
| ARRAY | back to summary |
|---|---|
| public static final byte ARRAY | |
| CLASS | back to summary |
|---|---|
| public static final byte CLASS | |
| cpool | back to summary |
|---|---|
| protected ConstantPool cpool
Deprecated (since 6.0) will be made private and final; do not access directly, use getter | |
| EMPTY_ARRAY | back to summary |
|---|---|
| pack-priv static final ElementValue[] EMPTY_ARRAY | |
| ENUM_CONSTANT | back to summary |
|---|---|
| public static final byte ENUM_CONSTANT | |
| PRIMITIVE_BOOLEAN | back to summary |
|---|---|
| public static final byte PRIMITIVE_BOOLEAN | |
| PRIMITIVE_BYTE | back to summary |
|---|---|
| public static final byte PRIMITIVE_BYTE | |
| PRIMITIVE_CHAR | back to summary |
|---|---|
| public static final byte PRIMITIVE_CHAR | |
| PRIMITIVE_DOUBLE | back to summary |
|---|---|
| public static final byte PRIMITIVE_DOUBLE | |
| PRIMITIVE_FLOAT | back to summary |
|---|---|
| public static final byte PRIMITIVE_FLOAT | |
| PRIMITIVE_INT | back to summary |
|---|---|
| public static final byte PRIMITIVE_INT | |
| PRIMITIVE_LONG | back to summary |
|---|---|
| public static final byte PRIMITIVE_LONG | |
| PRIMITIVE_SHORT | back to summary |
|---|---|
| public static final byte PRIMITIVE_SHORT | |
| STRING | back to summary |
|---|---|
| public static final byte STRING | |
| type | back to summary |
|---|---|
| protected int type
Deprecated (since 6.0) will be made private and final; do not access directly, use getter | |
| ElementValue | back to summary |
|---|---|
| protected ElementValue(final int type, final ConstantPool cpool) | |
| dump | back to summary |
|---|---|
| public abstract void dump(DataOutputStream dos) throws IOException | |
| getConstantPool | back to summary |
|---|---|
pack-priv final ConstantPool getConstantPool()
| |
| getElementValueType | back to summary |
|---|---|
| public int getElementValueType() | |
| getType | back to summary |
|---|---|
pack-priv final int getType()
| |
| readElementValue | back to summary |
|---|---|
| public static ElementValue readElementValue(final DataInput input, final ConstantPool cpool) throws IOException Reads an
| |
| readElementValue | back to summary |
|---|---|
| public static ElementValue readElementValue(final DataInput input, final ConstantPool cpool, int arrayNesting) throws IOException Reads an
| |
| stringifyValue | back to summary |
|---|---|
| public abstract String stringifyValue() | |
| toShortString | back to summary |
|---|---|
| public String toShortString() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |