public class DoubleMemberValue extends MemberValue
Modifier and Type | Field and Description |
---|---|
(package private) int |
valueIndex |
cp, tag
Constructor and Description |
---|
DoubleMemberValue(ConstPool cp)
Constructs a double constant value.
|
DoubleMemberValue(double d,
ConstPool cp)
Constructs a double constant value.
|
DoubleMemberValue(int index,
ConstPool cp)
Constructs a double constant value.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(MemberValueVisitor visitor)
Accepts a visitor.
|
(package private) java.lang.Class |
getType(java.lang.ClassLoader cl) |
double |
getValue()
Obtains the value of the member.
|
(package private) java.lang.Object |
getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m)
Returns the value.
|
void |
setValue(double newValue)
Sets the value of the member.
|
java.lang.String |
toString()
Obtains the string representation of this object.
|
void |
write(AnnotationsWriter writer)
Writes the value.
|
loadClass
public DoubleMemberValue(int index, ConstPool cp)
index
- the index of a CONSTANT_Double_info structure.public DoubleMemberValue(double d, ConstPool cp)
d
- the initial value.public DoubleMemberValue(ConstPool cp)
java.lang.Object getValue(java.lang.ClassLoader cl, ClassPool cp, java.lang.reflect.Method m)
MemberValue
getValue
in class MemberValue
java.lang.Class getType(java.lang.ClassLoader cl)
getType
in class MemberValue
public double getValue()
public void setValue(double newValue)
public java.lang.String toString()
toString
in class java.lang.Object
public void write(AnnotationsWriter writer) throws java.io.IOException
write
in class MemberValue
java.io.IOException
public void accept(MemberValueVisitor visitor)
accept
in class MemberValue