org.apache.bcel.classfile
Class ConstantFloat
- Cloneable, ConstantObject, Node, Serializable
public final class ConstantFloat
This class is derived from the abstract
Constant class
and represents a reference to a float object.
Version:
- M. Dahm
Constant
ConstantFloat
public ConstantFloat(float bytes)
bytes
- Data
ConstantFloat
public ConstantFloat(ConstantFloat c)
Initialize from another object. Note that both objects use the same
references (shallow copy). Use clone() for a physical copy.
accept
public void accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. I.e., the hierarchy of methods,
fields, attributes, etc. spawns a tree of objects.
- accept in interface Node
- accept in interface Constant
v
- Visitor object
dump
public final void dump(DataOutputStream file)
throws IOException
Dump constant float to file stream in binary format.
- dump in interface Constant
file
- Output file stream
getBytes
public final float getBytes()
- data, i.e., 4 bytes.
setBytes
public final void setBytes(float bytes)
toString
public final String toString()
- toString in interface Constant
- String representation.