|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.ConstantPool
The constant pool, in this object are stored all the constant of the classfile
| Field Summary | |
private int |
countItems
|
private Hashtable |
items
|
static int |
MAX_ENTRY
|
private boolean |
newOne
|
private PooledConstant[] |
table
|
| Constructor Summary | |
ConstantPool()
Constructs an empty constant pool |
|
ConstantPool(DataInput in)
Constructs a constant pool structure from a class file |
|
| Method Summary | |
void |
addItem(PooledConstant item)
This is the method to add items to a class. |
void |
close()
|
(package private) PooledConstant |
getEntryAt(int index)
Get the entry at a specified index |
(package private) void |
write(DataOutput out)
Write this class into the the file (out) getting data position from the constant pool |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MAX_ENTRY
private boolean newOne
private int countItems
private Hashtable items
private PooledConstant[] table
| Constructor Detail |
public ConstantPool()
public ConstantPool(DataInput in)
throws IOException,
ClassFileFormatException
in - the stream to read the class from
IOException - an io problem has occured
ClassFileFormatException - attempt to
write a bad classfile info| Method Detail |
public void close()
public final void addItem(PooledConstant item)
item - the item to be added to the constant poolfinal PooledConstant getEntryAt(int index)
void write(DataOutput out)
throws IOException
out - the file where to write this object info
IOException - an io problem has occured
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||