public class StringMemberValue extends MemberValue
| Constructor and Description |
|---|
StringMemberValue(ConstPool cp)
Constructs a string constant value.
|
StringMemberValue(int index,
ConstPool cp)
Constructs a string constant value.
|
StringMemberValue(String str,
ConstPool cp)
Constructs a string constant value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MemberValueVisitor visitor)
Accepts a visitor.
|
Class<?> |
getType(ClassLoader cl) |
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.
|
public StringMemberValue(int index,
ConstPool cp)
index - the index of a CONSTANT_Utf8_info structure.public StringMemberValue(String str, ConstPool cp)
str - the initial value.public StringMemberValue(ConstPool cp)
public Class<?> getType(ClassLoader cl)
getType in class MemberValuepublic String getValue()
public void setValue(String newValue)
public String toString()
public void write(AnnotationsWriter writer) throws IOException
write in class MemberValueIOExceptionpublic void accept(MemberValueVisitor visitor)
accept in class MemberValueCopyright © December 07, 2012–2015 The Internet Party. All rights reserved.