# Uses of Class
serp.bytecode.Annotation

Packages that use Annotation
Package
Description
serp.bytecode
Bytecode Manipuation
serp.bytecode.visitor
Bytecode Visitor

## Uses of Annotation in serp.bytecode

Methods in serp.bytecode that return Annotation
Modifier and Type
Method
Description
`Annotation`
Annotations.`addAnnotation(Class type)`
Add a new annotation.
`Annotation`
Annotations.`addAnnotation(String type)`
Add a new annotation.
`Annotation`
Annotations.`addAnnotation(Annotation an)`
Import an annotation from another instance.
`Annotation`
Annotations.`addAnnotation(BCClass type)`
Add a new annotation.
`Annotation`
Annotation.Property.`getAnnotation()`
The owning annotation.
`Annotation`
Annotations.`getAnnotation(Class type)`
Return the annotation of the given type, or null if none.
`Annotation`
Annotations.`getAnnotation(String type)`
Return the annotation of the given type, or null if none.
`Annotation`
Annotations.`getAnnotation(BCClass type)`
Return the annotation of the given type, or null if none.
`Annotation[]`
Annotations.`getAnnotations()`
All declared annotations.
`Annotation`
Annotation.Property.`getAnnotationValue()`
Return the annotation value of this property, or null if not set.
`Annotation[]`
Annotation.Property.`newAnnotationArrayValue(Class type, int length)`
Set this property value to a new annotation array of the given type and length, returning the annotations for manipulation.
`Annotation[]`
Annotation.Property.`newAnnotationArrayValue(String type, int length)`
Set this property value to a new annotation array of the given type and length, returning the annotations for manipulation.
`Annotation[]`
Annotation.Property.`newAnnotationArrayValue(BCClass type, int length)`
Set this property value to a new annotation array of the given type and length, returning the annotations for manipulation.
`Annotation`
Annotation.Property.`newAnnotationValue(Class type)`
Set this property value to a new annotation of the given type, returning the annotation for manipulation.
`Annotation`
Annotation.Property.`newAnnotationValue(String type)`
Set this property value to a new annotation of the given type, returning the annotation for manipulation.
`Annotation`
Annotation.Property.`newAnnotationValue(BCClass type)`
Set this property value to a new annotation of the given type, returning the annotation for manipulation.
`Annotation`
Annotation.Property.`setValue(Annotation value)`
Set the annotation value of this property by importing the given annotation from another instance.
`Annotation[]`
Annotation.Property.`setValue(Annotation[] value)`
Set the annotation value of this property by importing the given annotation from another instance.
Methods in serp.bytecode with parameters of type Annotation
Modifier and Type
Method
Description
`Annotation`
Annotations.`addAnnotation(Annotation an)`
Import an annotation from another instance.
`boolean`
Annotations.`removeAnnotation(Annotation anno)`
Remove the given annotation.
`void`
Annotations.`setAnnotations(Annotation[] annos)`
Set the annotations.
`Annotation`
Annotation.Property.`setValue(Annotation value)`
Set the annotation value of this property by importing the given annotation from another instance.
`Annotation[]`
Annotation.Property.`setValue(Annotation[] value)`
Set the annotation value of this property by importing the given annotation from another instance.

## Uses of Annotation in serp.bytecode.visitor

Methods in serp.bytecode.visitor with parameters of type Annotation
Modifier and Type
Method
Description
`void`
BCVisitor.`enterAnnotation(Annotation obj)`
`void`
PrettyPrintVisitor.`enterAnnotation(Annotation obj)`
`void`
BCVisitor.`exitAnnotation(Annotation obj)`
`void`
PrettyPrintVisitor.`exitAnnotation(Annotation obj)`