public class ClassMemberValue extends MemberValue
Constructor | Description |
---|---|
ClassMemberValue(int index,
ConstPool cp) |
Constructs a class value.
|
ClassMemberValue(String className,
ConstPool cp) |
Constructs a class value.
|
ClassMemberValue(ConstPool cp) |
Constructs a class value.
|
Modifier and Type | Method | Description |
---|---|---|
void |
accept(MemberValueVisitor visitor) |
Accepts a visitor.
|
String |
getValue() |
Obtains the value of the member.
|
void |
setValue(String newClassName) |
Sets the value of the member.
|
String |
toString() |
Obtains the string representation of this object.
|
void |
write(AnnotationsWriter writer) |
Writes the value.
|
public ClassMemberValue(int index, ConstPool cp)
index
- the index of a CONSTANT_Utf8_info structure.public ClassMemberValue(String className, ConstPool cp)
className
- the initial value.public ClassMemberValue(ConstPool cp)
public String getValue()
public void setValue(String newClassName)
newClassName
- fully-qualified class name.public String toString()
public void write(AnnotationsWriter writer) throws IOException
write
in class MemberValue
IOException
public void accept(MemberValueVisitor visitor)
accept
in class MemberValue
Copyright © 2018 Shigeru Chiba, www.javassist.org. All rights reserved.