public class AnnotationElementValue extends ElementValue
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENTRY_NAME |
ANNOTATION_TAG, ANNOTATION_TAG_VERBOSE, ARRAY_TAG, ARRAY_TAG_VERBOSE, BOOL_TAG, BOOL_TAG_VERBOSE, BYTE_TAG, BYTE_TAG_VERBOSE, CHAR_TAG, CHAR_TAG_VERBOSE, CLASS_TAG, CLASS_TAG_VERBOSE, DOUBLE_TAG, DOUBLE_TAG_VERBOSE, ENUM_TAG, ENUM_TAG_VERBOSE, FLOAT_TAG, FLOAT_TAG_VERBOSE, INT_TAG, INT_TAG_VERBOSE, LONG_TAG, LONG_TAG_VERBOSE, SHORT_TAG, SHORT_TAG_VERBOSE, STRING_TAG, STRING_TAG_VERBOSEclassFile, debug, SYSTEM_PROPERTY_DEBUG| Constructor and Description |
|---|
AnnotationElementValue() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
debug(java.lang.String message)
Utility method for derived structures.
|
ElementValuePair[] |
getElementValuePairEntries()
Get the list of element value pair associations of the parent
structure as an array of ElementValuePair structures.
|
java.lang.String |
getEntryName() |
protected int |
getSpecificLength() |
int |
getTypeIndex()
Get the type_index of this annotation.
|
void |
read(java.io.DataInput in)
Read this structure from the given DataInput.
|
void |
setElementValuePairEntries(ElementValuePair[] elementValuePairEntries)
Set the list of element value pair associations of the parent
structure as an array of ElementValuePair structures.
|
void |
setTypeIndex(int typeIndex)
Set the type_index of this annotation.
|
void |
write(java.io.DataOutput out)
Write this structure to the given DataOutput.
|
create, getLength, getTag, getTagDescription, printAccessFlagsVerbosegetClassFile, getDebug, getLength, printAccessFlags, printAccessFlagsVerbose, printBytes, setClassFile, setDebugpublic static final java.lang.String ENTRY_NAME
public java.lang.String getEntryName()
getEntryName in class ElementValuepublic ElementValuePair[] getElementValuePairEntries()
public void setElementValuePairEntries(ElementValuePair[] elementValuePairEntries)
elementValuePairEntries - the arraypublic int getTypeIndex()
public void setTypeIndex(int typeIndex)
typeIndex - the type_indexpublic void read(java.io.DataInput in)
throws InvalidByteCodeException,
java.io.IOException
AbstractStructureExcpects DataInput to be in JVM class file format and just before a structure of this kind. No look ahead parsing since the class file format is deterministic.
read in class AbstractStructurein - the DataInput from which to readInvalidByteCodeException - if the byte code is invalidjava.io.IOException - if an exception occurs with the DataInputpublic void write(java.io.DataOutput out)
throws InvalidByteCodeException,
java.io.IOException
AbstractStructureThe written bytes are in JVM class file format.
write in class ElementValueout - the DataOutput to which to writeInvalidByteCodeException - if the structure is internally inconsistentjava.io.IOException - if an exception occurs with the DataOutputprotected int getSpecificLength()
getSpecificLength in class ElementValueprotected void debug(java.lang.String message)
AbstractStructuredebug in class AbstractStructuremessage - the debug message