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

Quick Search    Search Deep

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

public final class DoubleCPEntry
extends WideValueCPEntry

this class represent a Double constant pool entry


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

See Also:
Constant Field Values

value

private double value
Constructor Detail

DoubleCPEntry

public DoubleCPEntry(double value)
Construct a new long CP entry with a long value


DoubleCPEntry

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

setValue

public void setValue(double value)
Set the double value


getUsedCPSpace

public int getUsedCPSpace()
Overrides:
getUsedCPSpace in class ConstantPoolEntry

toString

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