public static class AnnotationAppender.Default extends Object implements AnnotationAppender
AnnotationVisitor
.AnnotationAppender.AnnotationVisibility, AnnotationAppender.Default, AnnotationAppender.Target, AnnotationAppender.ValueFilter
NO_NAME
Constructor and Description |
---|
Default(AnnotationAppender.Target target,
AnnotationAppender.ValueFilter valueFilter)
Creates a default annotation appender.
|
Modifier and Type | Method and Description |
---|---|
AnnotationAppender |
append(AnnotationDescription annotation,
AnnotationAppender.AnnotationVisibility annotationVisibility)
Terminally writes the given annotation to the specified target.
|
static void |
apply(AnnotationVisitor annotationVisitor,
TypeDescription valueType,
String name,
Object value)
Performs the writing of a given annotation value to an annotation visitor.
|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
public Default(AnnotationAppender.Target target, AnnotationAppender.ValueFilter valueFilter)
target
- The target to which annotations are written to.valueFilter
- The value filter to apply for discovering which values of an annotation should be written.public static void apply(AnnotationVisitor annotationVisitor, TypeDescription valueType, String name, Object value)
annotationVisitor
- The annotation visitor the write process is to be applied on.valueType
- The type of the annotation value.name
- The name of the annotation type.value
- The annotation's value.public AnnotationAppender append(AnnotationDescription annotation, AnnotationAppender.AnnotationVisibility annotationVisibility)
AnnotationAppender
append
in interface AnnotationAppender
annotation
- The annotation to be written.annotationVisibility
- Determines the annotation visibility for the given annotation.this
or any other annotation appender capable of writing another annotation to
the specified target.Copyright © 2014–2015. All rights reserved.