org.objectweb.asm.optimizer
Class ConstantPool
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.objectweb.asm.optimizer.ConstantPool
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map
public class ConstantPool
- extends java.util.HashMap
A constant pool.
- Author:
- Eric Bruneton
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| 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 |
key1
private final Constant key1
key2
private final Constant key2
key3
private final Constant key3
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)
newString
private Constant newString(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)
get
private Constant get(Constant key)
put
private void put(Constant cst)