public class ClassMemberValue extends MemberValue
| Constructor and Description |
|---|
ClassMemberValue(ConstPool cp)
Constructs a class value.
|
ClassMemberValue(int index,
ConstPool cp)
Constructs a class value.
|
ClassMemberValue(java.lang.String className,
ConstPool cp)
Constructs a class value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MemberValueVisitor visitor)
Accepts a visitor.
|
java.lang.String |
getValue()
Obtains the value of the member.
|
void |
setValue(java.lang.String newClassName)
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 ClassMemberValue(int index,
ConstPool cp)
index - the index of a CONSTANT_Utf8_info structure.public ClassMemberValue(java.lang.String className,
ConstPool cp)
className - the initial value.public ClassMemberValue(ConstPool cp)
public java.lang.String getValue()
public void setValue(java.lang.String newClassName)
newClassName - fully-qualified class name.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 MemberValueJavassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.