|
||||||||||
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
public class 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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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 String getType()
public void setType(String typename)
typename
- a fully-qualified type name.public String getValue()
public void setValue(String name)
public String toString()
toString
in class Object
public void write(AnnotationsWriter writer) throws IOException
write
in class MemberValue
IOException
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 |