| java.lang.Object gnu.bytecode.CpoolEntry
All known Subclasses: gnu.bytecode.CpoolClass, gnu.bytecode.CpoolRef, gnu.bytecode.CpoolValue1, gnu.bytecode.CpoolString, gnu.bytecode.CpoolValue2, gnu.bytecode.CpoolUtf8, gnu.bytecode.CpoolNameAndType,
CpoolEntry | abstract public class CpoolEntry (Code) | | 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 |
Field Summary | |
int | hash A hashvalue so we do not get duplicate constant pool entries. | public int | index This entry's index in the constant pool. | CpoolEntry | next The next entry in the same hash bucket
(of the owning ConstantPool's hashTab). |
Method Summary | |
void | add_hashed(ConstantPool cpool) Enter current element into cpool.hashTab. | public int | getIndex() | abstract public int | getTag() | public int | hashCode() | abstract public 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. | abstract void | write(DataOutputStream str) |
hash | int hash(Code) | | A hashvalue so we do not get duplicate constant pool entries.
|
index | public int index(Code) | | This entry's index in the constant pool.
|
next | CpoolEntry next(Code) | | The next entry in the same hash bucket
(of the owning ConstantPool's hashTab).
|
CpoolEntry | protected CpoolEntry()(Code) | | |
add_hashed | void add_hashed(ConstantPool cpool)(Code) | | Enter current element into cpool.hashTab.
|
getIndex | public int getIndex()(Code) | | |
getTag | abstract public int getTag()(Code) | | |
hashCode | public int hashCode()(Code) | | |
print | abstract public void print(ClassTypeWriter dst, int verbosity)(Code) | | 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.
|
|
|