org.biojava.utils.bytecode
Class ConstantPool
java.lang.Object
org.biojava.utils.bytecode.ConstantPool
public class ConstantPool
- extends Object
Build a Java class file constant pool.
- Author:
- Thomas Down, Matthew Pocock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantPool
public ConstantPool()
resolveClass
public int resolveClass(CodeClass c)
resolveField
public int resolveField(CodeField f)
resolveMethod
public int resolveMethod(CodeMethod m)
resolveInterfaceMethod
public int resolveInterfaceMethod(CodeMethod m)
resolveString
public int resolveString(String s)
resolveInt
public int resolveInt(int i)
resolveFloat
public int resolveFloat(float f)
resolveLong
public int resolveLong(long l)
resolveDouble
public int resolveDouble(double d)
resolveUtf8
public int resolveUtf8(String s)
resolveNameAndType
public int resolveNameAndType(String name,
String desc)
constantPoolSize
public int constantPoolSize()
writeConstantPool
public void writeConstantPool(DataOutput d)
throws IOException
- Throws:
IOException