public static final class ClassFile.EnumConstValue extends Object implements ClassFile.ElementValue
ClassFile.ElementValue.Visitor<R,EX extends Throwable>| Modifier and Type | Field and Description |
|---|---|
short |
constNameIndex
const_name_index; index of a ClassFile.ConstantUtf8Info giveing the simple name of the enum
constant represented by this element_value structure. |
short |
typeNameIndex
type_name_index; index of a ClassFile.ConstantUtf8Info representing a field descriptor. |
| Constructor and Description |
|---|
EnumConstValue(short typeNameIndex,
short constNameIndex) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(ClassFile.ElementValue.Visitor<R,EX> visitor)
Invokes the respective method of the
ClassFile.ElementValue.Visitor. |
byte |
getTag() |
void |
store(DataOutputStream dos)
Writes this element value in an element-value-type dependent way; see JVMS8 4.7.16.1.
|
public final short typeNameIndex
type_name_index; index of a ClassFile.ConstantUtf8Info representing a field descriptor.public final short constNameIndex
const_name_index; index of a ClassFile.ConstantUtf8Info giveing the simple name of the enum
constant represented by this element_value structure.public EnumConstValue(short typeNameIndex,
short constNameIndex)
typeNameIndex - type_name_index; index of a ClassFile.ConstantUtf8Info representing a field
descriptorconstNameIndex - const_name_index; index of a ClassFile.ConstantUtf8Info giveing the simple
name of the enum constant represented by this element_value structurepublic byte getTag()
getTag in interface ClassFile.ElementValuepublic void store(DataOutputStream dos) throws IOException
ClassFile.ElementValuestore in interface ClassFile.ElementValueIOException@Nullable public <R,EX extends Throwable> R accept(ClassFile.ElementValue.Visitor<R,EX> visitor) throws EX extends Throwable
ClassFile.ElementValueClassFile.ElementValue.Visitor.accept in interface ClassFile.ElementValueEX extends ThrowableCopyright © 2019. All rights reserved.