All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Constant.ConstantDouble

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

public class ConstantDouble
extends ConstantValue
The CONSTANT_Double_info structure represents eight-byte floating-point numeric constants.

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

Variable Index

 o val
The value of the double constant.

Constructor Index

 o ConstantDouble(ClassFile, double)
Constructor.

Method Index

 o doubleValue()
Returns the 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.Double.
 o write(ClassDataOutputStream)
Write to a bytecode file.

Variables

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

Constructors

 o ConstantDouble
 public ConstantDouble(ClassFile parent,
                       double val)
Constructor.

Methods

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

Overrides:
write in class Constant
 o doubleValue
 public double doubleValue()
Returns the value of this constant.

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

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