java.lang.Object
com.chaoswg.xtc4y.classdesc.ConstantPoolEntry
- Direct Known Subclasses:
- ClassCPEntry, NameAndTypeCPEntry, RefCPEntry, UTF8CPEntry, ValueCPEntry
- public abstract class ConstantPoolEntry
- extends java.lang.Object
A Constant pool consists of a set of Constant pool entries. There are
types of a constantpool entry defined, which wil be implemented in
subclasses
|
Field Summary |
private byte |
tag
|
|
Constructor Summary |
protected |
ConstantPoolEntry(byte tag)
Create a constant pool entry with a tag, representing the type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tag
private byte tag
ConstantPoolEntry
protected ConstantPoolEntry(byte tag)
- Create a constant pool entry with a tag, representing the type
write
protected final void write(java.io.DataOutputStream dos,
ConstantPool cp)
throws java.io.IOException
- Write the constant pool entry information onto a DataOutputStream
resolve
protected abstract void resolve(ConstantPool cp)
- Resolve the internal stored indices thorugh the Constantpool
writeCPEntry
protected abstract void writeCPEntry(java.io.DataOutputStream dos,
ConstantPool cp)
throws java.io.IOException
- Write the type specific constant pool entry information onto a
DataOutputStream
getTag
public byte getTag()
getUsedCPSpace
public int getUsedCPSpace()