|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.classfile.ConstantPool
public class ConstantPool
Constant Pool implementation - this represents the constant pool of a class in a class file.
Field Summary |
---|
Method Summary | |
---|---|
ConstClass |
addClass(java.lang.String className)
Find or create a class constant in the pool |
ConstDouble |
addDouble(double d)
Find or create a double constant in the pool |
ConstFieldRef |
addFieldRef(java.lang.String className,
java.lang.String fieldName,
java.lang.String type)
Find or create a field constant in the pool |
ConstFloat |
addFloat(float f)
Find or create a float constant in the pool |
ConstInteger |
addInteger(int i)
Find or create an integer constant in the pool |
ConstInterfaceMethodRef |
addInterfaceMethodRef(java.lang.String className,
java.lang.String methodName,
java.lang.String type)
Find or create an interface method constant in the pool |
ConstLong |
addLong(long l)
Find or create a long constant in the pool |
ConstMethodRef |
addMethodRef(java.lang.String className,
java.lang.String methodName,
java.lang.String type)
Find or create a method constant in the pool |
ConstNameAndType |
addNameAndType(java.lang.String name,
java.lang.String type)
Find or create a name/type constant in the pool |
ConstString |
addString(java.lang.String s)
Find or create a string constant in the pool |
ConstUnicode |
addUnicode(java.lang.String s)
Find or create a unicode constant in the pool Obsolete? |
ConstUtf8 |
addUtf8(java.lang.String s)
Find or create a utf8 constant in the pool |
ConstBasic |
constantAt(int index)
Return the constant in the pool at the specified entry index |
int |
nEntries()
Return the number of pool entries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int nEntries()
public ConstBasic constantAt(int index)
public ConstClass addClass(java.lang.String className)
public ConstFieldRef addFieldRef(java.lang.String className, java.lang.String fieldName, java.lang.String type)
public ConstMethodRef addMethodRef(java.lang.String className, java.lang.String methodName, java.lang.String type)
public ConstInterfaceMethodRef addInterfaceMethodRef(java.lang.String className, java.lang.String methodName, java.lang.String type)
public ConstString addString(java.lang.String s)
public ConstInteger addInteger(int i)
public ConstFloat addFloat(float f)
public ConstLong addLong(long l)
public ConstDouble addDouble(double d)
public ConstNameAndType addNameAndType(java.lang.String name, java.lang.String type)
public ConstUtf8 addUtf8(java.lang.String s)
public ConstUnicode addUnicode(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |