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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.ConstantPoolEntry
      extended bycom.chaoswg.xtc4y.classdesc.ClassCPEntry

public final class ClassCPEntry
extends ConstantPoolEntry

this class represent a Class constant pool entry


Field Summary
private  java.lang.String fqn
           
private  short nameIndex
           
static byte TAG
          The tag identifying a Class cp entry
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.ConstantPoolEntry
 
Constructor Summary
protected ClassCPEntry(java.io.DataInputStream dis)
          Creates a new Class contantpool entry and initalizes it from a DataInputStream
  ClassCPEntry(java.lang.String fqn)
          Create a class constanpool entry with a name_index
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks if another ClassCPEntry is equal to this.
 java.lang.String getFQN()
           
protected  void resolve(ConstantPool cp)
          Resolve the internal stored indices thorugh the Constantpool
 java.lang.String toString()
          print in a readable way
protected  void writeCPEntry(java.io.DataOutputStream dos, ConstantPool cp)
          Write the type specific constant pool entry information onto a DataOutputStream
 
Methods inherited from class com.chaoswg.xtc4y.classdesc.ConstantPoolEntry
getTag, getUsedCPSpace, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG

public static final byte TAG
The tag identifying a Class cp entry

See Also:
Constant Field Values

fqn

private java.lang.String fqn

nameIndex

private short nameIndex
Constructor Detail

ClassCPEntry

protected ClassCPEntry(java.io.DataInputStream dis)
                throws java.io.IOException
Creates a new Class contantpool entry and initalizes it from a DataInputStream


ClassCPEntry

public ClassCPEntry(java.lang.String fqn)
Create a class constanpool entry with a name_index

Method Detail

resolve

protected void resolve(ConstantPool cp)
Resolve the internal stored indices thorugh the Constantpool

Specified by:
resolve in class ConstantPoolEntry

writeCPEntry

protected void writeCPEntry(java.io.DataOutputStream dos,
                            ConstantPool cp)
                     throws java.io.IOException
Write the type specific constant pool entry information onto a DataOutputStream

Specified by:
writeCPEntry in class ConstantPoolEntry

getFQN

public java.lang.String getFQN()

equals

public boolean equals(java.lang.Object obj)
Checks if another ClassCPEntry is equal to this.


toString

public java.lang.String toString()
print in a readable way