|
ej-technologies | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.jclasslib.structures.AbstractStructure
org.gjt.jclasslib.structures.elementvalues.ElementValuePair
Describes an ElementValuePair attribute structure.
| Field Summary | |
static String |
ENTRY_NAME
|
| Fields inherited from class org.gjt.jclasslib.structures.AbstractStructure |
classFile, debug, SYSTEM_PROPERTY_DEBUG |
| Constructor Summary | |
ElementValuePair()
|
|
| Method Summary | |
static ElementValuePair |
create(DataInput in,
ClassFile classFile)
Factory for creating ElementValuePair structures. |
int |
getElementNameIndex()
Get the element_name_index of this element value pair. |
ElementValue |
getElementValue()
Get the element_value of this element value pair. |
String |
getEntryName()
|
protected int |
getLength()
|
protected String |
printAccessFlagsVerbose(int accessFlags)
Utility method for derived structures. |
void |
read(DataInput in)
Read this structure from the given DataInput. |
void |
setElementNameIndex(int elementNameIndex)
Set the element_name_index of this element value pair. |
void |
setElementValue(ElementValue elementValue)
Set the element_value of this element value pair. |
void |
write(DataOutput out)
Write this structure to the given DataOutput. |
| Methods inherited from class org.gjt.jclasslib.structures.AbstractStructure |
debug, getClassFile, getDebug, getLength, printAccessFlags, printAccessFlagsVerbose, printBytes, setClassFile, setDebug |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ENTRY_NAME
| Constructor Detail |
public ElementValuePair()
| Method Detail |
public static ElementValuePair create(DataInput in,
ClassFile classFile)
throws InvalidByteCodeException,
IOException
in - the DataInput from which to read the
ElementValuePair structureclassFile - the parent class file of the structure to be created
InvalidByteCodeException - if the byte code is invalid
IOException - if an exception occurs with the DataInputpublic ElementValue getElementValue()
public void setElementValue(ElementValue elementValue)
elementValue - the element_valuepublic int getElementNameIndex()
public void setElementNameIndex(int elementNameIndex)
elementNameIndex - the element_name_index
public void read(DataInput in)
throws InvalidByteCodeException,
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 read
InvalidByteCodeException - if the byte code is invalid
IOException - if an exception occurs with the DataInput
public void write(DataOutput out)
throws InvalidByteCodeException,
IOException
AbstractStructureThe written bytes are in JVM class file format.
write in class AbstractStructureout - the DataOutput to which to write
IOException - if an exception occurs with the DataOutput
InvalidByteCodeException - if the structure is internally inconsistentprotected String printAccessFlagsVerbose(int accessFlags)
AbstractStructure
printAccessFlagsVerbose in class AbstractStructureaccessFlags - the unsigned short value to print as a hex string
protected int getLength()
public String getEntryName()
|
ej-technologies | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||