javassist.bytecode.annotation
public class StringMemberValue extends MemberValue
| Constructor Summary | |
|---|---|
| StringMemberValue(int index, ConstPool cp)
Constructs a string constant value. | |
| StringMemberValue(String str, ConstPool cp)
Constructs a string constant value.
| |
| StringMemberValue(ConstPool cp)
Constructs a string constant value. | |
| Method Summary | |
|---|---|
| void | accept(MemberValueVisitor visitor)
Accepts a visitor. |
| String | getValue()
Obtains the value of the member. |
| void | setValue(String newValue)
Sets the value of the member. |
| String | toString()
Obtains the string representation of this object. |
| void | write(AnnotationsWriter writer)
Writes the value. |
Parameters: index the index of a CONSTANT_Utf8_info structure.
Parameters: str the initial value.