| Package | Description |
|---|---|
| xapi.bytecode | |
| xapi.bytecode.annotation | |
| xapi.bytecode.attributes | |
| xapi.bytecode.impl |
| Modifier and Type | Method and Description |
|---|---|
Annotation |
ClassFile.getAnnotation(Class<?> annoClass) |
Annotation |
MemberInfo.getAnnotation(String annoName) |
Annotation |
ClassFile.getAnnotation(String name)
This method is for lazy programmers only;
it checks both runtime and compile annotations.
|
Annotation |
Annotated.getAnnotation(String annoClassName) |
Annotation[] |
MemberInfo.getAnnotations() |
Annotation[] |
FieldInfo.getAnnotations() |
Annotation[] |
ClassFile.getAnnotations() |
Annotation[] |
Annotated.getAnnotations() |
Annotation |
ClassFile.getCompileAnnotation(String name)
This method returns any compile annotations on the given classfile.
|
Annotation |
ClassFile.getRuntimeAnnotation(String name)
This method returns any runtime annotations on the given classfile.
|
| Modifier and Type | Method and Description |
|---|---|
Annotation |
AnnotationImpl.getAnnotation()
Obtains the internal data structure representing the annotation.
|
Annotation |
AnnotationsAttribute.getAnnotation(String type)
Parses the annotations and returns a data structure representing
the annotation with the specified type.
|
Annotation[] |
AnnotationsAttribute.getAnnotations()
Parses the annotations and returns a data structure representing
that parsed annotations.
|
Annotation |
AnnotationMemberValue.getValue()
Obtains the value.
|
Annotation[] |
AnnotationsAttribute.Parser.parseAnnotations() |
Annotation[][] |
AnnotationsAttribute.Parser.parseParameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
AnnotationsAttribute.addAnnotation(Annotation annotation)
Adds an annotation.
|
static Object |
AnnotationImpl.make(ClassLoader cl,
Class<?> clazz,
ClassPool cp,
Annotation anon)
Constructs an annotation object.
|
void |
AnnotationsAttribute.setAnnotation(Annotation annotation)
Changes the annotations.
|
void |
AnnotationsAttribute.setAnnotations(Annotation[] annotations)
Changes the annotations represented by this object according to
the given array of
Annotation objects. |
void |
AnnotationMemberValue.setValue(Annotation newValue)
Sets the value of this member.
|
| Constructor and Description |
|---|
AnnotationMemberValue(Annotation a,
ConstPool cp)
Constructs an annotation member.
|
| Modifier and Type | Method and Description |
|---|---|
Annotation[][] |
ParameterAnnotationsAttribute.getAnnotations()
Parses the annotations and returns a data structure representing
that parsed annotations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ParameterAnnotationsAttribute.setAnnotations(Annotation[][] params)
Changes the annotations represented by this object according to
the given array of
Annotation objects. |
| Modifier and Type | Method and Description |
|---|---|
static Annotation[] |
BytecodeUtil.extractAnnotations(AnnotationsAttribute visible,
AnnotationsAttribute invisible) |
| Modifier and Type | Method and Description |
|---|---|
IsAnnotation |
BytecodeAdapterService.toAnnotation(Annotation type) |
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.