public final class ConstantDouble extends Constant implements ConstantObject
Constant and represents a reference to a Double object.Constant| Constructor and Description |
|---|
ConstantDouble(ConstantDouble c)
Initialize from another object.
|
ConstantDouble(double bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
|
void |
dump(DataOutputStream file)
Dump constant double to file stream in binary format.
|
double |
getBytes() |
Object |
getConstantValue(ConstantPool cp) |
void |
setBytes(double bytes) |
String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparatorpublic ConstantDouble(ConstantDouble c)
public ConstantDouble(double bytes)
bytes - Datapublic void accept(Visitor v)
public void dump(DataOutputStream file) throws IOException
dump in class Constantfile - Output file streamIOException - if an I/O error occurs.public double getBytes()
public Object getConstantValue(ConstantPool cp)
getConstantValue in interface ConstantObjectpublic void setBytes(double bytes)
bytes - the raw bytes that represent the double valueCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.