|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.IR.RawClass.Constant
harpoon.IR.RawClass.ConstantValue
harpoon.IR.RawClass.ConstantDouble
public class ConstantDouble
The CONSTANT_Double_info
structure represents eight-byte
floating-point numeric constants.
Constant
,
ConstantLong
Field Summary | |
---|---|
double |
val
The value of the double constant. |
Fields inherited from class harpoon.IR.RawClass.Constant |
---|
parent |
Constructor Summary | |
---|---|
ConstantDouble(ClassFile parent,
double val)
Constructor. |
Method Summary | |
---|---|
double |
doubleValue()
Returns the value of this constant. |
int |
entrySize()
|
String |
toString()
Create a human-readable representation of this constant. |
Object |
value()
Returns the value of this constant, wrapped as a java.lang.Double . |
void |
write(ClassDataOutputStream out)
Write to a bytecode file. |
Methods inherited from class harpoon.IR.RawClass.Constant |
---|
print, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double val
double
constant.
Constructor Detail |
---|
public ConstantDouble(ClassFile parent, double val)
Method Detail |
---|
public int entrySize()
entrySize
in class Constant
public void write(ClassDataOutputStream out) throws IOException
write
in class Constant
IOException
- on error writing to output stream.public double doubleValue()
public Object value()
java.lang.Double
.
value
in class ConstantValue
public String toString()
toString
in class Constant
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |