public class BooleanMemberValue extends MemberValue
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
valueIndex |
cp, tag| Constructor and Description |
|---|
BooleanMemberValue(boolean b,
ConstPool cp)
Constructs a boolean constant value.
|
BooleanMemberValue(ConstPool cp)
Constructs a boolean constant value.
|
BooleanMemberValue(int index,
ConstPool cp)
Constructs a boolean 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) |
boolean |
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(boolean 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.
|
loadClasspublic BooleanMemberValue(int index,
ConstPool cp)
index - the index of a CONSTANT_Integer_info structure.public BooleanMemberValue(boolean b,
ConstPool cp)
b - the initial value.public BooleanMemberValue(ConstPool cp)
java.lang.Object getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m)
MemberValuegetValue in class MemberValuejava.lang.Class getType(java.lang.ClassLoader cl)
getType in class MemberValuepublic boolean getValue()
public void setValue(boolean newValue)
public java.lang.String toString()
toString in class java.lang.Objectpublic void write(AnnotationsWriter writer) throws java.io.IOException
write in class MemberValuejava.io.IOExceptionpublic void accept(MemberValueVisitor visitor)
accept in class MemberValue