public final class ConstantFloat extends Constant implements ConstantObject
Constant
and represents a reference to a float object.Constant
Constructor and Description |
---|
ConstantFloat(ConstantFloat c)
Initialize from another object.
|
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(DataOutputStream file)
Dump constant float to file stream in binary format.
|
float |
getBytes() |
Object |
getConstantValue(ConstantPool cp) |
void |
setBytes(float bytes) |
String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparator
public ConstantFloat(float bytes)
bytes
- Datapublic ConstantFloat(ConstantFloat c)
public void accept(Visitor v)
public void dump(DataOutputStream file) throws IOException
dump
in class Constant
file
- Output file streamIOException
public float getBytes()
public void setBytes(float bytes)
bytes
- the raw bytes that represent this floatpublic Object getConstantValue(ConstantPool cp)
getConstantValue
in interface ConstantObject
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.