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
-
val
- The value of the
double
constant.
-
ConstantDouble(ClassFile, double)
- Constructor.
-
doubleValue()
- Returns the value of this constant.
-
toString()
- Create a human-readable representation of this constant.
-
value()
- Returns the value of this constant, wrapped as a
java.lang.Double
.
-
write(ClassDataOutputStream)
- Write to a bytecode file.
val
public double val
- The value of the
double
constant.
ConstantDouble
public ConstantDouble(ClassFile parent,
double val)
- Constructor.
write
public void write(ClassDataOutputStream out) throws IOException
- Write to a bytecode file.
- Overrides:
- write in class Constant
doubleValue
public double doubleValue()
- Returns the value of this constant.
value
public Object value()
- Returns the value of this constant, wrapped as a
java.lang.Double
.
- Overrides:
- value in class ConstantValue
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