public abstract static class ClassFile.AnnotationsAttribute.ConstantElementValue extends Object implements ClassFile.AnnotationsAttribute.ElementValue
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClassFile.AnnotationsAttribute.ConstantElementValue.Visitor<R,EX extends Throwable>
The visitor interface for the implementation of the "visitor" pattern.
|
| Modifier and Type | Field and Description |
|---|---|
short |
constantValueIndex
The index of the constant pool entry that holds the constant value for this annotation element.
|
| Constructor and Description |
|---|
ConstantElementValue(byte tag,
short constantValueIndex) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract <R,EX extends Throwable> |
accept(ClassFile.AnnotationsAttribute.ConstantElementValue.Visitor<R,EX> visitor)
Invokes the respective method of the
ClassFile.AnnotationsAttribute.ConstantElementValue.Visitor. |
<R,EX extends Throwable> |
accept(ClassFile.AnnotationsAttribute.ElementValue.Visitor<R,EX> visitor)
Invokes the respective method of the
ClassFile.AnnotationsAttribute.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 constantValueIndex
public ConstantElementValue(byte tag,
short constantValueIndex)
public byte getTag()
getTag in interface ClassFile.AnnotationsAttribute.ElementValuepublic void store(DataOutputStream dos) throws IOException
ClassFile.AnnotationsAttribute.ElementValuestore in interface ClassFile.AnnotationsAttribute.ElementValueIOException@Nullable public <R,EX extends Throwable> R accept(ClassFile.AnnotationsAttribute.ElementValue.Visitor<R,EX> visitor) throws EX extends Throwable
ClassFile.AnnotationsAttribute.ElementValueClassFile.AnnotationsAttribute.ElementValue.Visitor.accept in interface ClassFile.AnnotationsAttribute.ElementValueEX extends Throwable@Nullable protected abstract <R,EX extends Throwable> R accept(ClassFile.AnnotationsAttribute.ConstantElementValue.Visitor<R,EX> visitor) throws EX extends Throwable
ClassFile.AnnotationsAttribute.ConstantElementValue.Visitor.EX extends Throwable