|
|||||||||
| 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.ConstantFloat
public class ConstantFloat
The CONSTANT_Float_info structure represents four-byte
floating-point numeric constants.
Constant,
ConstantInteger| Field Summary | |
|---|---|
float |
val
The value of the float constant. |
| Fields inherited from class harpoon.IR.RawClass.Constant |
|---|
parent |
| Constructor Summary | |
|---|---|
ConstantFloat(ClassFile parent,
float val)
Constructor. |
|
| Method Summary | |
|---|---|
float |
floatValue()
Returns the floating-point value of this constant. |
String |
toString()
Create a human-readable representation of this constant. |
Object |
value()
Returns the value of this constant, wrapped as a java.lang.Float. |
void |
write(ClassDataOutputStream out)
Write to a bytecode file. |
| Methods inherited from class harpoon.IR.RawClass.Constant |
|---|
entrySize, print, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public float val
float constant.
| Constructor Detail |
|---|
public ConstantFloat(ClassFile parent,
float val)
| Method Detail |
|---|
public void write(ClassDataOutputStream out)
throws IOException
write in class ConstantIOException - on error writing to output stream.public float floatValue()
public Object value()
java.lang.Float.
value in class ConstantValuepublic String toString()
toString in class Constant
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||