org.apache.tomcat.util.bcel.classfile
Class ConstantDouble
java.lang.Object
org.apache.tomcat.util.bcel.classfile.Constant
org.apache.tomcat.util.bcel.classfile.ConstantDouble
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ConstantObject
public final class ConstantDouble
- extends Constant
- implements ConstantObject
This class is derived from the abstract
Constant class
and represents a reference to a Double object.
- Version:
- $Id: ConstantDouble.java 992409 2010-09-03 18:35:59Z markt $
- Author:
- M. Dahm
- See Also:
Constant
,
Serialized Form
Fields inherited from class org.apache.tomcat.util.bcel.classfile.Constant |
tag |
Method Summary |
void |
dump(java.io.DataOutputStream file)
Dump constant double to file stream in binary format. |
double |
getBytes()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ConstantDouble
public ConstantDouble(double bytes)
- Parameters:
bytes
- Data
dump
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
- Dump constant double to file stream in binary format.
- Specified by:
dump
in class Constant
- Parameters:
file
- Output file stream
- Throws:
java.io.IOException
getBytes
public final double getBytes()
- Returns:
- data, i.e., 8 bytes.
toString
public final java.lang.String toString()
- Overrides:
toString
in class Constant
- Returns:
- String representation.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.