org.apache.bcel.classfile
public final class ConstantFloat extends Constant implements ConstantObject
Constant
,
Serialized FormModifier and Type | Field and Description |
---|---|
private float |
bytes |
Constructor and Description |
---|
ConstantFloat(ConstantFloat c)
Initialize from another object.
|
ConstantFloat(java.io.DataInputStream file)
Initialize instance from file data.
|
ConstantFloat(float bytes) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
void |
dump(java.io.DataOutputStream file)
Dump constant float to file stream in binary format.
|
float |
getBytes() |
java.lang.Object |
getConstantValue(ConstantPool cp) |
void |
setBytes(float bytes) |
java.lang.String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparator
public ConstantFloat(float bytes)
bytes
- Datapublic ConstantFloat(ConstantFloat c)
ConstantFloat(java.io.DataInputStream file) throws java.io.IOException
file
- Input streamjava.io.IOException
public void accept(Visitor v)
public final void dump(java.io.DataOutputStream file) throws java.io.IOException
public final float getBytes()
public final void setBytes(float bytes)
bytes
- the raw bytes that represent this floatpublic final java.lang.String toString()
public java.lang.Object getConstantValue(ConstantPool cp)
getConstantValue
in interface ConstantObject