Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.classfile

public final Class ConstantDouble

extends Constant
implements ConstantObject
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.bcel.internal.classfile.ConstantObject
Imports
java.io.DataInput, .DataOutputStream, .IOException, com.sun.org.apache.bcel.internal.Const

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

Field Summary

Modifier and TypeField and Description
private double
Inherited from com.sun.org.apache.bcel.internal.classfile.Constant:
tag

Constructor Summary

AccessConstructor and Description
public
ConstantDouble(final ConstantDouble
Source to copy.
c
)

Initialize from another object.

pack-priv
ConstantDouble(final DataInput
Input stream
file
)

Initialize instance from file data.

public
ConstantDouble(final double
Data
bytes
)

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor
Visitor object
v
)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Constant.accept.

Implements com.sun.org.apache.bcel.internal.classfile.Node.accept.

Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.

public void
dump(final DataOutputStream
Output file stream
file
)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Constant.dump.

Dump constant double to file stream in binary format.

public double

Returns:

data, i.e., 8 bytes.
getBytes
()

public Object
public void
setBytes(final double
the raw bytes that represent the double value
bytes
)

public String

Returns:

String representation.
toString
()

Overrides com.sun.org.apache.bcel.internal.classfile.Constant.toString.

Returns a string representation of the object.

Inherited from com.sun.org.apache.bcel.internal.classfile.Constant:
clonecopyequalsgetComparatorgetTaghashCodereadConstantsetComparator

Field Detail

bytesback to summary
private double bytes

Constructor Detail

ConstantDoubleback to summary
public ConstantDouble(final ConstantDouble c)

Initialize from another object.

Parameters
c:ConstantDouble

Source to copy.

ConstantDoubleback to summary
pack-priv ConstantDouble(final DataInput file) throws IOException

Initialize instance from file data.

Parameters
file:DataInput

Input stream

Exceptions
IOException:
if an I/O error occurs.
ConstantDoubleback to summary
public ConstantDouble(final double bytes)
Parameters
bytes:double

Data

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Constant.accept.

Implements com.sun.org.apache.bcel.internal.classfile.Node.accept.

Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters
v:Visitor

Visitor object

Annotations
@Override
dumpback to summary
public void dump(final DataOutputStream file) throws IOException

Implements abstract com.sun.org.apache.bcel.internal.classfile.Constant.dump.

Dump constant double to file stream in binary format.

Parameters
file:DataOutputStream

Output file stream

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
getBytesback to summary
public double getBytes()
Returns:double

data, i.e., 8 bytes.

getConstantValueback to summary
public Object getConstantValue(final ConstantPool cp)

Implements com.sun.org.apache.bcel.internal.classfile.ConstantObject.getConstantValue.

Returns:Object

Double object

Annotations
@Override
setBytesback to summary
public void setBytes(final double bytes)
Parameters
bytes:double

the raw bytes that represent the double value

toStringback to summary
public String toString()

Overrides com.sun.org.apache.bcel.internal.classfile.Constant.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

String representation.

Annotations
@Override