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

Quick Search    Search Deep

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

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

public final class UTF8CPEntry
extends ConstantPoolEntry

this class represent a UTF8 constant pool entry


Field Summary
private  java.lang.String string
           
static byte TAG
          The tag identifying a UTF8 cp entry
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.ConstantPoolEntry
 
Constructor Summary
protected UTF8CPEntry(java.io.DataInputStream dis)
          Creates a new UTF8 contantpool entry and initalizes it from a DataInputStream
  UTF8CPEntry(java.lang.String string)
          Create a new UTF8 constant pool entry with a given string
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks if another UTF8CPEntry is equal to this.
 java.lang.String getString()
           
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 UTF8 cp entry

See Also:
Constant Field Values

string

private java.lang.String string
Constructor Detail

UTF8CPEntry

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


UTF8CPEntry

public UTF8CPEntry(java.lang.String string)
Create a new UTF8 constant pool entry with a given string

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

getString

public java.lang.String getString()

equals

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


toString

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