All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Constant.ConstantFloat

java.lang.Object
   |
   +----harpoon.ClassFile.Raw.Constant.Constant
           |
           +----harpoon.ClassFile.Raw.Constant.ConstantValue
                   |
                   +----harpoon.ClassFile.Raw.Constant.ConstantFloat

public class ConstantFloat
extends ConstantValue
The CONSTANT_Float_info structure represents four-byte floating-point numeric constants.

Version:
$Id: ConstantFloat.java,v 1.13 1998/10/11 03:01:14 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Constant, ConstantInteger

Variable Index

 o val
The value of the float constant.

Constructor Index

 o ConstantFloat(ClassFile, float)
Constructor.

Method Index

 o floatValue()
Returns the floating-point value of this constant.
 o toString()
Create a human-readable representation of this constant.
 o value()
Returns the value of this constant, wrapped as a java.lang.Float.
 o write(ClassDataOutputStream)
Write to a bytecode file.

Variables

 o val
 public float val
The value of the float constant.

Constructors

 o ConstantFloat
 public ConstantFloat(ClassFile parent,
                      float val)
Constructor.

Methods

 o write
 public void write(ClassDataOutputStream out) throws IOException
Write to a bytecode file.

Overrides:
write in class Constant
 o floatValue
 public float floatValue()
Returns the floating-point value of this constant.

 o value
 public Object value()
Returns the value of this constant, wrapped as a java.lang.Float.

Overrides:
value in class ConstantValue
 o toString
 public String toString()
Create a human-readable representation of this constant.

Overrides:
toString in class Constant

All Packages  Class Hierarchy  This Package  Previous  Next  Index