public class FloatMemberValue extends MemberValue
| Constructor and Description |
|---|
FloatMemberValue(ConstPool cp)
Constructs a float constant value.
|
FloatMemberValue(float f,
ConstPool cp)
Constructs a float constant value.
|
FloatMemberValue(int index,
ConstPool cp)
Constructs a float constant value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MemberValueVisitor visitor)
Accepts a visitor.
|
float |
getValue()
Obtains the value of the member.
|
void |
setValue(float newValue)
Sets the value of the member.
|
String |
toString()
Obtains the string representation of this object.
|
void |
write(AnnotationsWriter writer)
Writes the value.
|
public FloatMemberValue(int index,
ConstPool cp)
index - the index of a CONSTANT_Float_info structure.public FloatMemberValue(float f,
ConstPool cp)
f - the initial value.public FloatMemberValue(ConstPool cp)
public float getValue()
public void setValue(float newValue)
public String toString()
public void write(AnnotationsWriter writer) throws IOException
write in class MemberValueIOExceptionpublic void accept(MemberValueVisitor visitor)
accept in class MemberValueCopyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.