FileDocCategorySizeDatePackage
ConstDouble.javaAPI DocGlassfish v2 API3278Fri May 04 22:34:28 BST 2007com.sun.jdo.api.persistence.enhancer.classfile

ConstDouble

public class ConstDouble extends ConstValue
Class representing a double constant in the constant pool of a class file

Fields Summary
public static final int
MyTag
private double
doubleValue
Constructors Summary
ConstDouble(double f)
Construct a ConstDouble object

    doubleValue = f;
  
Methods Summary
public java.lang.Stringdescriptor()
Return the descriptor string for the constant type.

      return "D";//NOI18N
  
voidformatData(java.io.DataOutputStream b)

    b.writeDouble(doubleValue);
  
static com.sun.jdo.api.persistence.enhancer.classfile.ConstDoubleread(java.io.DataInputStream input)

    return new ConstDouble (input.readDouble());
  
voidresolve(ConstantPool p)

 
public inttag()
The tag of this constant entry


  /* public accessors */

           
      
    return MyTag;
  
public java.lang.StringtoString()
A printable representation

      return "CONSTANTDouble(" + indexAsString() + "): " + //NOI18N
          "doubleValue(" + Double.toString(doubleValue) + ")";//NOI18N
  
public doublevalue()
return the value associated with the entry

    return doubleValue;