net.sourceforge.retroweaver.optimizer
Class ConstantPool
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<Constant,Constant>
net.sourceforge.retroweaver.optimizer.ConstantPool
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<Constant,Constant>
public class ConstantPool
- extends java.util.HashMap<Constant,Constant>
A constant pool.
- Author:
- Eric Bruneton
- See Also:
- Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
ConstantPool
public ConstantPool()
newInteger
public Constant newInteger(int value)
newFloat
public Constant newFloat(float value)
newLong
public Constant newLong(long value)
newDouble
public Constant newDouble(double value)
newUTF8
public Constant newUTF8(java.lang.String value)
newClass
public Constant newClass(java.lang.String value)
newConst
public Constant newConst(java.lang.Object cst)
newField
public Constant newField(java.lang.String owner,
java.lang.String name,
java.lang.String desc)
newMethod
public Constant newMethod(java.lang.String owner,
java.lang.String name,
java.lang.String desc,
boolean itf)
newNameType
public Constant newNameType(java.lang.String name,
java.lang.String desc)