org.compass.core.util.asm.optimizer
Class ConstantPool

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.compass.core.util.asm.optimizer.ConstantPool
All Implemented Interfaces:
Serializable, Cloneable, Map

public class ConstantPool
extends HashMap

A constant pool.

Author:
Eric Bruneton
See Also:
Serialized Form

Constructor Summary
ConstantPool()
           
 
Method Summary
 Constant newClass(String value)
           
 Constant newConst(Object cst)
           
 Constant newDouble(double value)
           
 Constant newField(String owner, String name, String desc)
           
 Constant newFloat(float value)
           
 Constant newInteger(int value)
           
 Constant newLong(long value)
           
 Constant newMethod(String owner, String name, String desc, boolean itf)
           
 Constant newNameType(String name, String desc)
           
 Constant newUTF8(String value)
           
 
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
 

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(String value)

newClass

public Constant newClass(String value)

newConst

public Constant newConst(Object cst)

newField

public Constant newField(String owner,
                         String name,
                         String desc)

newMethod

public Constant newMethod(String owner,
                          String name,
                          String desc,
                          boolean itf)

newNameType

public Constant newNameType(String name,
                            String desc)


Copyright (c) 2004-2008 The Compass Project.