Interface AnnotationAppender
-
- All Known Implementing Classes:
AnnotationAppender.Default
public interface AnnotationAppenderAnnotation appenders are capable of writing annotations to a specified target.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAnnotationAppender.DefaultA default implementation for an annotation appender that writes annotations to a given byte consumer represented by an ASMAnnotationVisitor.static classAnnotationAppender.ForTypeAnnotationsA type visitor that visits all type annotations of a generic type and writes any discovered annotation to a suppliedAnnotationAppender.static interfaceAnnotationAppender.TargetRepresents a target for an annotation writing process.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNO_NAMEA constant for informing ASM over ignoring a given name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationAppenderappend(AnnotationDescription annotationDescription, AnnotationValueFilter annotationValueFilter)Writes the given annotation to the target that this appender represents.AnnotationAppenderappend(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
thisor 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
thisor any other annotation appender capable of writing another annotation to the specified target.
-
-