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

ConstFloat

public class ConstFloat extends ConstValue
Class representing a float constant in the constant pool of a class file

Fields Summary
public static final int
MyTag
private float
floatValue
Constructors Summary
ConstFloat(float f)

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

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

    b.writeFloat(floatValue);
  
static com.sun.jdo.api.persistence.enhancer.classfile.ConstFloatread(java.io.DataInputStream input)

    return new ConstFloat (input.readFloat());
  
voidresolve(ConstantPool p)

 
public inttag()
The tag of this constant entry


  /* public accessors */

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

      return "CONSTANTFloat(" + indexAsString() + "): " + //NOI18N
          "floatValue(" + Float.toString(floatValue) + ")";//NOI18N
  
public floatvalue()
return the value associated with the entry

    return floatValue;