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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.ConstantPoolEntry
      extended bycom.chaoswg.xtc4y.classdesc.ValueCPEntry
          extended bycom.chaoswg.xtc4y.classdesc.ShortValueCPEntry
              extended bycom.chaoswg.xtc4y.classdesc.StringCPEntry

public final class StringCPEntry
extends ShortValueCPEntry

this class represent a String constant pool entry


Field Summary
private  java.lang.String string
           
private  short stringIndex
           
static byte TAG
          The tag identifying a String cp entry
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.ConstantPoolEntry
 
Constructor Summary
protected StringCPEntry(java.io.DataInputStream dis)
          Creates a StringCPEntry and initializes it from a DataInputStream
  StringCPEntry(java.lang.String string)
          Create a string cp entry with a steing
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks if another stringCPEntry is equal to this.
 java.lang.String getString()
           
protected  void resolve(ConstantPool cp)
          Resolve the internal stored indices thorugh the Constantpool
 void setString(java.lang.String string)
          Set the new string value
 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 String cp entry

See Also:
Constant Field Values

string

private java.lang.String string

stringIndex

private short stringIndex
Constructor Detail

StringCPEntry

public StringCPEntry(java.lang.String string)
Create a string cp entry with a steing


StringCPEntry

protected StringCPEntry(java.io.DataInputStream dis)
                 throws java.io.IOException
Creates a StringCPEntry 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

getString

public java.lang.String getString()

setString

public void setString(java.lang.String string)
Set the new string value


equals

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


toString

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