|
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
public class ElementValuePair
Describes an ElementValuePair attribute structure.
| Field Summary | |
|---|---|
static java.lang.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(java.io.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. |
java.lang.String |
getEntryName()
|
protected int |
getLength()
|
protected java.lang.String |
printAccessFlagsVerbose(int accessFlags)
Utility method for derived structures. |
void |
read(java.io.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(java.io.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 java.lang.String ENTRY_NAME
| Constructor Detail |
|---|
public ElementValuePair()
| Method Detail |
|---|
public static ElementValuePair create(java.io.DataInput in,
ClassFile classFile)
throws InvalidByteCodeException,
java.io.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
java.io.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(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 read
InvalidByteCodeException - if the byte code is invalid
java.io.IOException - if an exception occurs with the DataInput
public void write(java.io.DataOutput out)
throws InvalidByteCodeException,
java.io.IOException
AbstractStructureThe written bytes are in JVM class file format.
write in class AbstractStructureout - the DataOutput to which to write
InvalidByteCodeException - if the structure is internally inconsistent
java.io.IOException - if an exception occurs with the DataOutputprotected java.lang.String printAccessFlagsVerbose(int accessFlags)
AbstractStructure
printAccessFlagsVerbose in class AbstractStructureaccessFlags - the unsigned short value to print as a hex string
protected int getLength()
public java.lang.String getEntryName()
|
ej-technologies | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||