com.techtrader.modules.tools.bytecode.lowlevel
Class ComplexEntry
java.lang.Object
|
+--com.techtrader.modules.tools.bytecode.lowlevel.ComplexEntry
- Direct Known Subclasses:
- FieldEntry, InterfaceMethodEntry, MethodEntry
- public abstract class ComplexEntry
- extends Object
- implements Entry, LowLevelConstants
The complex entry serves as a base class for field, method, and interface
method constant pool entries.
- Author:
- Abe White
Fields inherited from interface com.techtrader.modules.tools.bytecode.lowlevel.LowLevelConstants |
ENTRY_CLASS,
ENTRY_DOUBLE,
ENTRY_FIELD,
ENTRY_FLOAT,
ENTRY_INT,
ENTRY_INTMETHOD,
ENTRY_LONG,
ENTRY_METHOD,
ENTRY_NAME_AND_TYPE,
ENTRY_PLACEHOLDER,
ENTRY_STRING,
ENTRY_UTF8 |
Method Summary |
int |
getClassIndex()
Get the index of the ClassEntry describing the class to which
this entry applies. |
String |
getKey()
Return a suitable hash key for this entry. |
int |
getNameAndTypeIndex()
Get the index in the constant pool of the NameAndTypeEntry
describing this entity. |
void |
readData(DataInput in)
This is called by the ClassRep after reading the entry type. |
void |
setClassIndex(int classIndex)
Set the index of the ClassEntry describing the class to which
this entry applies. |
void |
setNameAndTypeIndex(int nameAndTypeIndex)
Set the index in the constant pool of the NameAndTypeEntry
describing this entity. |
void |
writeData(DataOutput out)
This is called by the ClassRep after writing the entry type. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
_classIndex
protected int _classIndex
_nameAndTypeIndex
protected int _nameAndTypeIndex
ComplexEntry
public ComplexEntry()
getClassIndex
public int getClassIndex()
- Get the index of the ClassEntry describing the class to which
this entry applies.
setClassIndex
public void setClassIndex(int classIndex)
- Set the index of the ClassEntry describing the class to which
this entry applies.
getNameAndTypeIndex
public int getNameAndTypeIndex()
- Get the index in the constant pool of the NameAndTypeEntry
describing this entity.
setNameAndTypeIndex
public void setNameAndTypeIndex(int nameAndTypeIndex)
- Set the index in the constant pool of the NameAndTypeEntry
describing this entity.
readData
public void readData(DataInput in)
throws IOException
- Description copied from interface: Entry
- This is called by the ClassRep after reading the entry type.
- Specified by:
- readData in interface Entry
writeData
public void writeData(DataOutput out)
throws IOException
- Description copied from interface: Entry
- This is called by the ClassRep after writing the entry type.
- Specified by:
- writeData in interface Entry
getKey
public String getKey()
- Description copied from interface: Entry
- Return a suitable hash key for this entry.
- Specified by:
- getKey in interface Entry