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 ClassesModifier and TypeInterfaceDescriptionstatic class
A default implementation for an annotation appender that writes annotations to a given byte consumer represented by an ASMAnnotationVisitor
.static class
A type visitor that visits all type annotations of a generic type and writes any discovered annotation to a suppliedAnnotationAppender
.static interface
Represents a target for an annotation writing process. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionappend
(AnnotationDescription annotationDescription, AnnotationValueFilter annotationValueFilter) Writes the given annotation to the target that this appender represents.append
(AnnotationDescription annotationDescription, AnnotationValueFilter annotationValueFilter, int typeReference, String typePath) Writes the given type annotation to the target that this appender represents.
-
Field Details
-
NO_NAME
A constant for informing ASM over ignoring a given name.
-
-
Method Details
-
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, 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.
-