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

Quick Search    Search Deep

com.chaoswg.xtc4y.classdesc
Class IntegerCPEntry  view IntegerCPEntry download IntegerCPEntry.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.IntegerCPEntry

public class IntegerCPEntry
extends ShortValueCPEntry

this class represent a Integer constant pool entry


Field Summary
static byte TAG
          The tag identifying a Integer cp entry
private  int value
           
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.ConstantPoolEntry
 
Constructor Summary
protected IntegerCPEntry(java.io.DataInputStream dis)
          Creates a new Integer contantpool entry and initalizes it from a DataInputStream
  IntegerCPEntry(int value)
          Constructor for internal usage to overwrite the tag flag
 
Method Summary
 int getValue()
           
protected  void resolve(ConstantPool cp)
          Resolve the internal stored indices thorugh the Constantpool
 void setValue(int value)
          Set the int 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG

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

See Also:
Constant Field Values

value

private int value
Constructor Detail

IntegerCPEntry

public IntegerCPEntry(int value)
Constructor for internal usage to overwrite the tag flag


IntegerCPEntry

protected IntegerCPEntry(java.io.DataInputStream dis)
                  throws java.io.IOException
Creates a new Integer contantpool entry and initalizes 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

getValue

public int getValue()

setValue

public void setValue(int value)
Set the int value


toString

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