javassist.bytecode.annotation
public class EnumMemberValue extends MemberValue
| Constructor Summary | |
|---|---|
| EnumMemberValue(int type, int value, ConstPool cp)
Constructs an enum constant value. | |
| EnumMemberValue(ConstPool cp)
Constructs an enum constant value.
| |
| Method Summary | |
|---|---|
| void | accept(MemberValueVisitor visitor)
Accepts a visitor. |
| String | getType()
Obtains the enum type name.
|
| String | getValue()
Obtains the name of the enum constant value. |
| void | setType(String typename)
Changes the enum type name.
|
| void | setValue(String name)
Changes the name of the enum constant value. |
| String | toString() |
| void | write(AnnotationsWriter writer)
Writes the value. |
Parameters: type the index of a CONSTANT_Utf8_info structure representing the enum type. value the index of a CONSTANT_Utf8_info structure. representing the enum value.
Returns: a fully-qualified type name.
Parameters: typename a fully-qualified type name.