|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> [ classdesc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.chaoswg.xtc4y.classdesc
Class ConstantPool

java.lang.Objectcom.chaoswg.xtc4y.classdesc.ConstantPool
- public class ConstantPool
- extends java.lang.Object
This class describes the constant pool in a class file. It is mainly used internally The constant pool begins at index 1, therefore tries for storing data at this position wan't succeed, a ArrayIndexOutofBoundException will be thrown. It begins at index 1 so a reference to a cp entry at position 0 means no reference.
| Field Summary | |
private java.util.Vector |
poolEntries
|
private ClassCPEntry |
thisClass
|
| Constructor Summary | |
|
ConstantPool()
Create a new empty constant pool |
protected |
ConstantPool(java.io.DataInputStream dis)
Creates and Initializes a constant pool from a DataInputStream |
| Method Summary | |
short |
addCPEntry(ConstantPoolEntry entry)
add a constant pool entry, if it already exists, just return an index on it |
java.util.Iterator |
getCPEntries()
|
ConstantPoolEntry |
getCPEntryAt(int index)
|
int |
getSize()
|
protected ClassCPEntry |
getThisClass()
Get this class |
protected void |
setThisClass(ClassCPEntry cl)
set this class |
java.lang.String |
toString()
Get a readable version of hte current constant pool |
protected void |
write(java.io.DataOutputStream dos)
Write the constant pool information into a DataOutputStream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
poolEntries
private java.util.Vector poolEntries
thisClass
private ClassCPEntry thisClass
| Constructor Detail |
ConstantPool
public ConstantPool()
- Create a new empty constant pool
ConstantPool
protected ConstantPool(java.io.DataInputStream dis) throws java.io.IOException
- Creates and Initializes a constant pool from a DataInputStream
| Method Detail |
write
protected void write(java.io.DataOutputStream dos) throws java.io.IOException
- Write the constant pool information into a DataOutputStream
addCPEntry
public short addCPEntry(ConstantPoolEntry entry)
- add a constant pool entry, if it already exists, just return an index
on it
getCPEntries
public java.util.Iterator getCPEntries()
getCPEntryAt
public ConstantPoolEntry getCPEntryAt(int index)
getSize
public int getSize()
getThisClass
protected ClassCPEntry getThisClass()
- Get this class
setThisClass
protected void setThisClass(ClassCPEntry cl)
- set this class
toString
public java.lang.String toString()
- Get a readable version of hte current constant pool
|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> [ classdesc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.chaoswg.xtc4y.classdesc.ConstantPool