|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--koala.dynamicjava.classfile.ConstantPool
This class represents JVM bytecode constant pools
Constructor Summary | |
ConstantPool()
Creates a new constant pool |
Method Summary | |
short |
getCount()
Returns the constant pool count according to the JVM Spec. |
short |
put(ClassIdentifier cst)
Adds a constant to the pool. |
short |
put(ConstantString cst)
Adds a constant to the pool. |
short |
put(java.lang.Double cst)
Adds a constant to the pool. |
short |
put(FieldIdentifier cst)
Adds a constant to the pool. |
short |
put(java.lang.Float cst)
Adds a constant to the pool. |
short |
put(java.lang.Integer cst)
Adds a constant to the pool. |
short |
put(InterfaceMethodIdentifier cst)
Adds a constant to the pool. |
short |
put(java.lang.Long cst)
Adds a constant to the pool. |
short |
put(MethodIdentifier cst)
Adds a constant to the pool. |
void |
write(java.io.DataOutputStream out)
Writes the content of this pool to the given output stream |
void |
write(java.io.OutputStream out)
Writes the content of this pool to the given output stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConstantPool()
Method Detail |
public short getCount()
public short put(java.lang.Integer cst)
cst
- the constant to addpublic short put(java.lang.Long cst)
cst
- the constant to addpublic short put(java.lang.Float cst)
cst
- the constant to addpublic short put(java.lang.Double cst)
cst
- the constant to addpublic short put(ConstantString cst)
cst
- the constant to addpublic short put(ClassIdentifier cst)
cst
- the constant to addpublic short put(FieldIdentifier cst)
cst
- the constant to addpublic short put(MethodIdentifier cst)
cst
- the constant to addpublic short put(InterfaceMethodIdentifier cst)
cst
- the constant to addpublic void write(java.io.OutputStream out) throws java.io.IOException
public void write(java.io.DataOutputStream out) throws java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |