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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.ConstantPoolEntry
      extended bycom.chaoswg.xtc4y.classdesc.RefCPEntry
Direct Known Subclasses:
FieldrefCPEntry, InterfaceMethodrefCPEntry, MethodrefCPEntry

public abstract class RefCPEntry
extends ConstantPoolEntry

this class represent a Ref constant pool entry and is an abstraction from all the reference CP Entried. No setter methods are implemented because the values may be changed in the returned constant pool entries.


Field Summary
private  ClassCPEntry classCP
           
private  short classIndex
           
private  NameAndTypeCPEntry natCP
           
private  short natIndex
           
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.ConstantPoolEntry
 
Constructor Summary
protected RefCPEntry(byte tag, ClassCPEntry classCP, NameAndTypeCPEntry natCP)
          Create a fieldref entry
protected RefCPEntry(byte tag, java.io.DataInputStream dis)
          Creates a RefCPEntry and initializes it from a DataInputStream
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks if another RefCPEntry is equal to this.
 ClassCPEntry getClassCP()
           
 NameAndTypeCPEntry getNameAndTypeCP()
           
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

classCP

private ClassCPEntry classCP

natCP

private NameAndTypeCPEntry natCP

classIndex

private short classIndex

natIndex

private short natIndex
Constructor Detail

RefCPEntry

protected RefCPEntry(byte tag,
                     ClassCPEntry classCP,
                     NameAndTypeCPEntry natCP)
Create a fieldref entry


RefCPEntry

protected RefCPEntry(byte tag,
                     java.io.DataInputStream dis)
              throws java.io.IOException
Creates a RefCPEntry and initializes it from a DataInputStream

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

getClassCP

public ClassCPEntry getClassCP()

getNameAndTypeCP

public NameAndTypeCPEntry getNameAndTypeCP()

equals

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


toString

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