|
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.ElementValue
org.gjt.jclasslib.structures.elementvalues.ClassElementValue
public class ClassElementValue
Describes an ClassElementValue attribute structure.
| Field Summary | |
|---|---|
static java.lang.String |
ENTRY_NAME
|
| Fields inherited from class org.gjt.jclasslib.structures.elementvalues.ElementValue |
|---|
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, INITIAL_LENGTH, INT_TAG, INT_TAG_VERBOSE, LONG_TAG, LONG_TAG_VERBOSE, SHORT_TAG, SHORT_TAG_VERBOSE, STRING_TAG, STRING_TAG_VERBOSE |
| Fields inherited from class org.gjt.jclasslib.structures.AbstractStructure |
|---|
classFile, debug, SYSTEM_PROPERTY_DEBUG |
| Constructor Summary | |
|---|---|
protected |
ClassElementValue()
|
| Method Summary | |
|---|---|
protected void |
debug(java.lang.String message)
Utility method for derived structures. |
int |
getClassInfoIndex()
Get the class_info_index of this element value entry. |
java.lang.String |
getEntryName()
|
protected int |
getSpecificLength()
|
void |
read(java.io.DataInput in)
Read this structure from the given DataInput. |
void |
setClassInfoIndex(int classInfoIndex)
Set the class_info_index of this element value entry. |
void |
write(java.io.DataOutput out)
Write this structure to the given DataOutput. |
| Methods inherited from class org.gjt.jclasslib.structures.elementvalues.ElementValue |
|---|
create, getLength, getTag, getTagDescription, printAccessFlagsVerbose |
| Methods inherited from class org.gjt.jclasslib.structures.AbstractStructure |
|---|
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 |
|---|
protected ClassElementValue()
| Method Detail |
|---|
public int getClassInfoIndex()
public void setClassInfoIndex(int classInfoIndex)
classInfoIndex - the class_info_indexprotected int getSpecificLength()
getSpecificLength in class ElementValue
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 ElementValueout - the DataOutput to which to write
InvalidByteCodeException - if the structure is internally inconsistent
java.io.IOException - if an exception occurs with the DataOutputprotected void debug(java.lang.String message)
AbstractStructure
debug in class AbstractStructuremessage - the debug messagepublic java.lang.String getEntryName()
getEntryName in class ElementValue
|
ej-technologies | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||