Method Summary |
|
public ClassConstant | addClass(String name) Adds a class constant. |
public void | addConstant(ConstantPoolEntry entry) Adds a new constant. |
public DoubleConstant | addDouble(double value) Adds a double constant. |
public FieldRefConstant | addFieldRef(String className, String name, String type) Adds a field ref constant. |
public FloatConstant | addFloat(float value) Adds a float constant. |
public IntegerConstant | addInteger(int value) Adds a integer constant. |
public InterfaceMethodRefConstant | addInterfaceRef(String className, String name, String type) Adds an interface ref constant. |
public LongConstant | addLong(long value) Adds a long constant. |
public MethodRefConstant | addMethodRef(String className, String name, String type) Adds a method ref constant. |
public NameAndTypeConstant | addNameAndType(String name, String type) Adds a name-and-type constant. |
public StringConstant | addString(String name) Adds a string constant. |
public Utf8Constant | addUTF8(String value) Adds a UTF-8 constant. |
public ClassConstant | getClass(int index) |
public ClassConstant | getClass(String name) Gets a class constant. |
public DoubleConstant | getDouble(int index) |
public DoubleConstant | getDoubleByValue(double value) Gets a double constant. |
public ArrayList<ConstantPoolEntry> | getEntries() Returns all the entries. |
public ConstantPoolEntry | getEntry(int index) |
public FieldRefConstant | getFieldRef(int index) |
public FieldRefConstant | getFieldRef(String className, String name, String type) Gets a field ref constant. |
public FieldRefConstant | getFieldRef(String name) Gets a field ref constant. |
public FloatConstant | getFloat(int index) |
public FloatConstant | getFloatByValue(float value) Gets a float constant. |
public IntegerConstant | getInteger(int index) |
public IntegerConstant | getIntegerByValue(int value) Gets a integer constant. |
public InterfaceMethodRefConstant | getInterfaceMethodRef(int index) |
public InterfaceMethodRefConstant | getInterfaceRef(String className, String name, String type) Gets an interface constant. |
public LongConstant | getLong(int index) |
public LongConstant | getLongByValue(long value) Gets a long constant. |
public MethodRefConstant | getMethodRef(int index) |
public MethodRefConstant | getMethodRef(String className, String name, String type) Gets a method ref constant. |
public NameAndTypeConstant | getNameAndType(int index) |
public NameAndTypeConstant | getNameAndType(String name, String type) Gets a name-and-type constant. |
public StringConstant | getString(int index) |
public StringConstant | getString(String name) Gets a string constant. |
public Utf8Constant | getUTF8(String value) Gets a UTF-8 constant. |
public Utf8Constant | getUtf8(int index) |
public String | getUtf8AsString(int index) |
void | write(ByteCodeWriter out) Writes the contents of the pool. |