public class StringMemberValue extends MemberValue
Constructor | Description |
---|---|
StringMemberValue(int index,
ConstPool cp) |
Constructs a string constant value.
|
StringMemberValue(java.lang.String str,
ConstPool cp) |
Constructs a string constant value.
|
StringMemberValue(ConstPool cp) |
Constructs a string constant value.
|
Modifier and Type | Method | Description |
---|---|---|
void |
accept(MemberValueVisitor visitor) |
Accepts a visitor.
|
java.lang.String |
getValue() |
Obtains the value of the member.
|
void |
setValue(java.lang.String 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.
|
public StringMemberValue(int index, ConstPool cp)
index
- the index of a CONSTANT_Utf8_info structure.public StringMemberValue(java.lang.String str, ConstPool cp)
str
- the initial value.public StringMemberValue(ConstPool cp)
public java.lang.String getValue()
public void setValue(java.lang.String 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
Copyright © 2018 Shigeru Chiba, www.javassist.org. All Rights Reserved.