Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.chaoswg.xtc4y.classdesc
Class ConstantPoolEntry  view ConstantPoolEntry download ConstantPoolEntry.java

java.lang.Object
  extended bycom.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
 
Method Summary
 byte getTag()
           
 int getUsedCPSpace()
           
protected abstract  void resolve(ConstantPool cp)
          Resolve the internal stored indices thorugh the Constantpool
protected  void write(java.io.DataOutputStream dos, ConstantPool cp)
          Write the constant pool entry information onto a DataOutputStream
protected abstract  void writeCPEntry(java.io.DataOutputStream dos, ConstantPool cp)
          Write the type specific constant pool entry information onto a DataOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tag

private byte tag
Constructor Detail

ConstantPoolEntry

protected ConstantPoolEntry(byte tag)
Create a constant pool entry with a tag, representing the type

Method Detail

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()