Apache Tomcat 7.0.28

org.apache.tomcat.util.bcel.classfile
Class ConstantDouble

java.lang.Object
  extended by org.apache.tomcat.util.bcel.classfile.Constant
      extended by org.apache.tomcat.util.bcel.classfile.ConstantDouble
All Implemented Interfaces:
Serializable, Cloneable

public final class ConstantDouble
extends Constant

This class is derived from the abstract Constant class and represents a reference to a Double object.

Version:
$Id: ConstantDouble.java 1181135 2011-10-10 18:51:44Z markt $
Author:
M. Dahm
See Also:
Constant, Serialized Form

Field Summary
 
Fields inherited from class org.apache.tomcat.util.bcel.classfile.Constant
tag
 
Constructor Summary
ConstantDouble(double bytes)
           
 
Method Summary
 void dump(DataOutputStream file)
          Dump constant double to file stream in binary format.
 double getBytes()
           
 String toString()
           
 
Methods inherited from class org.apache.tomcat.util.bcel.classfile.Constant
clone, equals, getTag, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantDouble

public ConstantDouble(double bytes)
Parameters:
bytes - Data
Method Detail

dump

public final void dump(DataOutputStream file)
                throws IOException
Dump constant double to file stream in binary format.

Specified by:
dump in class Constant
Parameters:
file - Output file stream
Throws:
IOException

getBytes

public final double getBytes()
Returns:
data, i.e., 8 bytes.

toString

public final String toString()
Overrides:
toString in class Constant
Returns:
String representation.

Apache Tomcat 7.0.28

Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.