@HashCodeAndEqualsPlugin.Enhance public static class AnnotationAppender.Default extends Object implements AnnotationAppender
AnnotationVisitor
.AnnotationAppender.Default, AnnotationAppender.ForTypeAnnotations, AnnotationAppender.Target
NO_NAME
Constructor and Description |
---|
Default(AnnotationAppender.Target target)
Creates a default annotation appender.
|
Modifier and Type | Method and Description |
---|---|
AnnotationAppender |
append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter)
Writes the given annotation to the target that this appender represents.
|
AnnotationAppender |
append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter,
int typeReference,
String typePath)
Writes the given type annotation to the target that this appender represents.
|
static void |
apply(AnnotationVisitor annotationVisitor,
TypeDescription valueType,
String name,
Object value)
Performs the writing of a given annotation value to an annotation visitor.
|
public Default(AnnotationAppender.Target target)
target
- The target to which annotations are written to.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 annotationDescription, AnnotationValueFilter annotationValueFilter)
append
in interface AnnotationAppender
annotationDescription
- The annotation to be written.annotationValueFilter
- The annotation value filter to use.this
or any other annotation appender capable of writing another annotation to the specified target.public AnnotationAppender append(AnnotationDescription annotationDescription, AnnotationValueFilter annotationValueFilter, int typeReference, String typePath)
append
in interface AnnotationAppender
annotationDescription
- The annotation to be written.annotationValueFilter
- The annotation value filter to use.typeReference
- The type variable's type reference.typePath
- The type variable's type path.this
or any other annotation appender capable of writing another annotation to the specified target.Copyright © 2014–2020. All rights reserved.