org.objectweb.asm.optimizer
Class ConstantPool

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
private  Constant key1
           
private  Constant key2
           
private  Constant key3
           
 
Constructor Summary
ConstantPool()
           
 
Method Summary
private  Constant get(Constant key)
           
 Constant newClass(java.lang.String value)
           
 Constant newConst(java.lang.Object cst)
           
 Constant newDouble(double value)
           
 Constant newField(java.lang.String owner, java.lang.String name, java.lang.String desc)
           
 Constant newFloat(float value)
           
 Constant newInteger(int value)
           
 Constant newLong(long value)
           
 Constant newMethod(java.lang.String owner, java.lang.String name, java.lang.String desc, boolean itf)
           
 Constant newNameType(java.lang.String name, java.lang.String desc)
           
private  Constant newString(java.lang.String value)
           
 Constant newUTF8(java.lang.String value)
           
private  void put(Constant cst)
           
 
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
 

Field Detail

key1

private final Constant key1

key2

private final Constant key2

key3

private final Constant key3
Constructor Detail

ConstantPool

public ConstantPool()
Method Detail

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)