Interface AnnotationAppender
-
- All Known Implementing Classes:
AnnotationAppender.Default
public interface AnnotationAppender
Annotation appenders are capable of writing annotations to a specified target.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AnnotationAppender.Default
A default implementation for an annotation appender that writes annotations to a given byte consumer represented by an ASMAnnotationVisitor
.static class
AnnotationAppender.ForTypeAnnotations
A type visitor that visits all type annotations of a generic type and writes any discovered annotation to a suppliedAnnotationAppender
.static interface
AnnotationAppender.Target
Represents a target for an annotation writing process.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NO_NAME
A constant for informing ASM over ignoring a given name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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, java.lang.String typePath)
Writes the given type annotation to the target that this appender represents.
-
-
-
Method Detail
-
append
AnnotationAppender append(AnnotationDescription annotationDescription, AnnotationValueFilter annotationValueFilter)
Writes the given annotation to the target that this appender represents.- Parameters:
annotationDescription
- The annotation to be written.annotationValueFilter
- The annotation value filter to use.- Returns:
- Usually
this
or any other annotation appender capable of writing another annotation to the specified target.
-
append
AnnotationAppender append(AnnotationDescription annotationDescription, AnnotationValueFilter annotationValueFilter, int typeReference, java.lang.String typePath)
Writes the given type annotation to the target that this appender represents.- Parameters:
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.- Returns:
- Usually
this
or any other annotation appender capable of writing another annotation to the specified target.
-
-