com.sun.tools.classfile
Class ConstantPool
java.lang.Object
com.sun.tools.classfile.ConstantPool
public class ConstantPool
- extends java.lang.Object
See JVMS3, section 4.5.
This is NOT part of any API supported by Sun Microsystems. If
you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONSTANT_Utf8
public static final int CONSTANT_Utf8
- See Also:
- Constant Field Values
CONSTANT_Integer
public static final int CONSTANT_Integer
- See Also:
- Constant Field Values
CONSTANT_Float
public static final int CONSTANT_Float
- See Also:
- Constant Field Values
CONSTANT_Long
public static final int CONSTANT_Long
- See Also:
- Constant Field Values
CONSTANT_Double
public static final int CONSTANT_Double
- See Also:
- Constant Field Values
CONSTANT_Class
public static final int CONSTANT_Class
- See Also:
- Constant Field Values
CONSTANT_String
public static final int CONSTANT_String
- See Also:
- Constant Field Values
CONSTANT_Fieldref
public static final int CONSTANT_Fieldref
- See Also:
- Constant Field Values
CONSTANT_Methodref
public static final int CONSTANT_Methodref
- See Also:
- Constant Field Values
CONSTANT_InterfaceMethodref
public static final int CONSTANT_InterfaceMethodref
- See Also:
- Constant Field Values
CONSTANT_NameAndType
public static final int CONSTANT_NameAndType
- See Also:
- Constant Field Values
pool
private ConstantPool.CPInfo[] pool
ConstantPool
ConstantPool(ClassReader cr)
throws java.io.IOException,
ConstantPool.InvalidEntry
- Throws:
java.io.IOException
ConstantPool.InvalidEntry
ConstantPool
public ConstantPool(ConstantPool.CPInfo[] pool)
size
public int size()
get
public ConstantPool.CPInfo get(int index)
throws ConstantPool.InvalidIndex
- Throws:
ConstantPool.InvalidIndex
get
private ConstantPool.CPInfo get(int index,
int expected_type)
throws ConstantPool.InvalidIndex,
ConstantPool.UnexpectedEntry
- Throws:
ConstantPool.InvalidIndex
ConstantPool.UnexpectedEntry
getUTF8Info
public ConstantPool.CONSTANT_Utf8_info getUTF8Info(int index)
throws ConstantPool.InvalidIndex,
ConstantPool.UnexpectedEntry
- Throws:
ConstantPool.InvalidIndex
ConstantPool.UnexpectedEntry
getClassInfo
public ConstantPool.CONSTANT_Class_info getClassInfo(int index)
throws ConstantPool.InvalidIndex,
ConstantPool.UnexpectedEntry
- Throws:
ConstantPool.InvalidIndex
ConstantPool.UnexpectedEntry
getNameAndTypeInfo
public ConstantPool.CONSTANT_NameAndType_info getNameAndTypeInfo(int index)
throws ConstantPool.InvalidIndex,
ConstantPool.UnexpectedEntry
- Throws:
ConstantPool.InvalidIndex
ConstantPool.UnexpectedEntry
getUTF8Value
public java.lang.String getUTF8Value(int index)
throws ConstantPool.InvalidIndex,
ConstantPool.UnexpectedEntry
- Throws:
ConstantPool.InvalidIndex
ConstantPool.UnexpectedEntry
getUTF8Index
public int getUTF8Index(java.lang.String value)
throws ConstantPool.EntryNotFound
- Throws:
ConstantPool.EntryNotFound