Package | Description |
---|---|
javassist.bytecode |
Bytecode-level API.
|
javassist.bytecode.annotation |
Bytecode-level Annotations API.
|
Modifier and Type | Method and Description |
---|---|
MemberValue |
AnnotationDefaultAttribute.getDefaultValue()
Obtains the default value represented by this attribute.
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationDefaultAttribute.setDefaultValue(MemberValue value)
Changes the default value represented by this attribute.
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationMemberValue
Nested annotation.
|
class |
ArrayMemberValue
Array member.
|
class |
BooleanMemberValue
Boolean constant value.
|
class |
ByteMemberValue
Byte constant value.
|
class |
CharMemberValue
Char constant value.
|
class |
ClassMemberValue
Class value.
|
class |
DoubleMemberValue
Double floating-point number constant value.
|
class |
EnumMemberValue
Enum constant value.
|
class |
FloatMemberValue
Floating-point number constant value.
|
class |
IntegerMemberValue
Integer constant value.
|
class |
LongMemberValue
Long integer constant value.
|
class |
ShortMemberValue
Short integer constant value.
|
class |
StringMemberValue
String constant value.
|
Modifier and Type | Method and Description |
---|---|
static MemberValue |
Annotation.createMemberValue(ConstPool cp,
CtClass type)
Makes an instance of
MemberValue . |
MemberValue |
Annotation.getMemberValue(java.lang.String name)
Obtains the member value with the given name.
|
MemberValue |
ArrayMemberValue.getType()
Obtains the type of the elements.
|
MemberValue[] |
ArrayMemberValue.getValue()
Obtains the elements of the array.
|
Modifier and Type | Method and Description |
---|---|
void |
Annotation.addMemberValue(int nameIndex,
MemberValue value)
Adds a new member.
|
void |
Annotation.addMemberValue(java.lang.String name,
MemberValue value)
Adds a new member.
|
void |
ArrayMemberValue.setValue(MemberValue[] elements)
Sets the elements of the array.
|
Constructor and Description |
---|
ArrayMemberValue(MemberValue t,
ConstPool cp)
Constructs an array.
|
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.