TechTrader Bytecode Toolkit

com.techtrader.modules.tools.bytecode.lowlevel
Class ClassEntry

java.lang.Object
  |
  +--com.techtrader.modules.tools.bytecode.lowlevel.ClassEntry

public class ClassEntry
extends Object
implements Entry, LowLevelConstants

Low-level representation of a constant pool entry describing a Class. Class entries are used to refer to the compiled class, the superclass, implemented interfaces, field types, etc. Each ClassEntry contains an index into the constant pool of the UTF8Entry that stores the class name, which is represented in internal form.

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
 
Constructor Summary
ClassEntry()
           
 
Method Summary
 void acceptVisit(BCVisitor visit)
          Accept a visit from a BCVisitor, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this object.
 String getKey()
          Return a suitable hash key for this entry.
 int getNameIndex()
          Get the index into the constant pool of a UTF8Entry containing the class name.
 int getType()
          Get the constant for the type of entry represented.
 void readData(DataInput in)
          This is called by the ClassRep after reading the entry type.
 void setNameIndex(int nameIndex)
          Set the index into the constant pool of a UTF8Entry containing the class name.
 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
 

Constructor Detail

ClassEntry

public ClassEntry()
Method Detail

getNameIndex

public int getNameIndex()
Get the index into the constant pool of a UTF8Entry containing the class name.

setNameIndex

public void setNameIndex(int nameIndex)
Set the index into the constant pool of a UTF8Entry containing the class name.

getType

public int getType()
Description copied from interface: Entry
Get the constant for the type of entry represented.
Specified by:
getType in interface Entry

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

acceptVisit

public void acceptVisit(BCVisitor visit)
Description copied from interface: VisitAcceptor
Accept a visit from a BCVisitor, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this object.

TechTrader Bytecode Toolkit