gnu.bytecode
public class ConstantPool extends Object
| Field Summary | |
|---|---|
| static byte | CLASS |
| static byte | DOUBLE |
| static byte | FIELDREF |
| static byte | FLOAT |
| static byte | INTEGER |
| static byte | INTERFACE_METHODREF |
| static byte | LONG |
| static byte | METHODREF |
| static byte | NAME_AND_TYPE |
| static byte | STRING |
| static byte | UTF8 |
| Constructor Summary | |
|---|---|
| ConstantPool() | |
| ConstantPool(DataInputStream dstr) | |
| Method Summary | |
|---|---|
| CpoolClass | addClass(ObjectType otype) |
| CpoolClass | addClass(String name) |
| CpoolClass | addClass(CpoolUtf8 name) |
| CpoolValue2 | addDouble(double val) |
| CpoolRef | addFieldRef(Field field) |
| CpoolValue1 | addFloat(float val) |
| CpoolValue1 | addInt(int val) |
| CpoolValue2 | addLong(long val) |
| CpoolRef | addMethodRef(Method method) |
| CpoolNameAndType | addNameAndType(Method method) |
| CpoolNameAndType | addNameAndType(Field field) |
| CpoolNameAndType | addNameAndType(CpoolUtf8 name, CpoolUtf8 type) |
| CpoolRef | addRef(int tag, CpoolClass clas, CpoolNameAndType nameAndType) |
| CpoolString | addString(String string) |
| CpoolString | addString(CpoolUtf8 str) |
| CpoolUtf8 | addUtf8(String s) |
| int | getCount() |
| CpoolEntry | getPoolEntry(int index)
Get the index'th entry in pool.
|