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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.ConstantPoolEntry
      extended bycom.chaoswg.xtc4y.classdesc.ValueCPEntry
          extended bycom.chaoswg.xtc4y.classdesc.WideValueCPEntry
              extended bycom.chaoswg.xtc4y.classdesc.LongCPEntry

public class LongCPEntry
extends WideValueCPEntry

this class represent a Long constant pool entry


Field Summary
static byte TAG
          The tag identifying a Long cp entry
private  long value
           
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.ConstantPoolEntry
 
Constructor Summary
protected LongCPEntry(java.io.DataInputStream dis)
          Creates a new long contantpool entry and initalizes it from a DataInputStream
  LongCPEntry(long value)
          Construct a new long CP entry with a long value
 
Method Summary
 int getUsedCPSpace()
           
 long getValue()
           
protected  void resolve(ConstantPool cp)
          Resolve the internal stored indices thorugh the Constantpool
 void setValue(long value)
          Set the long 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, 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 Long cp entry

See Also:
Constant Field Values

value

private long value
Constructor Detail

LongCPEntry

public LongCPEntry(long value)
Construct a new long CP entry with a long value


LongCPEntry

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

setValue

public void setValue(long value)
Set the long value


getUsedCPSpace

public int getUsedCPSpace()
Overrides:
getUsedCPSpace in class ConstantPoolEntry

toString

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