Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.techtrader.modules.tools.bytecode.lowlevel
Class ComplexEntry  view ComplexEntry download ComplexEntry.java

java.lang.Object
  extended bycom.techtrader.modules.tools.bytecode.lowlevel.ComplexEntry
All Implemented Interfaces:
Entry, LowLevelConstants, com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor
Direct Known Subclasses:
FieldEntry, InterfaceMethodEntry, MethodEntry

public abstract class ComplexEntry
extends java.lang.Object
implements Entry, LowLevelConstants

The complex entry serves as a base class for field, method, and interface method constant pool entries.


Field Summary
protected  int _classIndex
           
protected  int _nameAndTypeIndex
           
 
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
 
Constructor Summary
ComplexEntry()
           
 
Method Summary
 int getClassIndex()
          Get the index of the ClassEntry describing the class to which this entry applies.
 java.lang.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(java.io.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(java.io.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
 
Methods inherited from interface com.techtrader.modules.tools.bytecode.lowlevel.Entry
getType
 
Methods inherited from interface com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor
acceptVisit
 

Field Detail

_classIndex

protected int _classIndex

_nameAndTypeIndex

protected int _nameAndTypeIndex
Constructor Detail

ComplexEntry

public ComplexEntry()
Method Detail

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(java.io.DataInput in)
              throws java.io.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(java.io.DataOutput out)
               throws java.io.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 java.lang.String getKey()
Description copied from interface: Entry
Return a suitable hash key for this entry.

Specified by:
getKey in interface Entry