|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavassist.bytecode.annotation.MemberValue
javassist.bytecode.annotation.EnumMemberValue
Enum constant value.
| Constructor Summary | |
EnumMemberValue(ConstPool cp)
Constructs an enum constant value. |
|
EnumMemberValue(int type,
int value,
ConstPool cp)
Constructs an enum constant value. |
|
| Method Summary | |
void |
accept(MemberValueVisitor visitor)
Accepts a visitor. |
java.lang.String |
getType()
Obtains the enum type name. |
java.lang.String |
getValue()
Obtains the name of the enum constant value. |
void |
setType(java.lang.String typename)
Changes the enum type name. |
void |
setValue(java.lang.String name)
Changes the name of the enum constant value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public EnumMemberValue(int type,
int value,
ConstPool cp)
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.public EnumMemberValue(ConstPool cp)
| Method Detail |
public java.lang.String getType()
public void setType(java.lang.String typename)
typename - a fully-qualified type name.public java.lang.String getValue()
public void setValue(java.lang.String name)
public java.lang.String toString()
public void accept(MemberValueVisitor visitor)
accept in class MemberValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||