All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gnu.bytecode.CpoolEntry

java.lang.Object
   |
   +----gnu.bytecode.CpoolEntry

public abstract class CpoolEntry
extends Object
An entry in the constant pool for a ClassType. Each entry belong to the constant pool table of the "owning" ClassType. Hashing is used to make each entry unique (with a ClassType). By convention, each sub-class has a static get_const method which is used when a contant pool entry is need: The get_const method will return an existing matching entry if possible, or allocate a new one if needed.

Author:
Per Bothner

Variable Index

 o index
This entry's index in the constant pool.

Constructor Index

 o CpoolEntry()
 o CpoolEntry(ConstantPool, int)

Method Index

 o getIndex()
 o getTag()
 o hashCode()
 o print(ClassTypeWriter, int)
Print this constant pool entry.

Variables

 o index
 public int index
This entry's index in the constant pool.

Constructors

 o CpoolEntry
 protected CpoolEntry()
 o CpoolEntry
 public CpoolEntry(ConstantPool cpool,
                   int h)

Methods

 o getIndex
 public int getIndex()
 o getTag
 public abstract int getTag()
 o hashCode
 public int hashCode()
Overrides:
hashCode in class Object
 o print
 public abstract void print(ClassTypeWriter dst,
                            int verbosity)
Print this constant pool entry. If verbosity==0, print very tersely (no extraneous text). If verbosity==1, prefix the type of the constant. If verbosity==2, add more descriptive text.


All Packages  Class Hierarchy  This Package  Previous  Next  Index