Top Description Inners Fields Methods
net.bytebuddy.implementation.attribute

public Interface AnnotationAppender

Known Direct Implementers
net.bytebuddy.implementation.attribute.AnnotationAppender.Default
Imports
edu.umd.cs.findbugs.annotations.SuppressFBWarnings, net.bytebuddy.build.HashCodeAndEqualsPlugin, net.bytebuddy.description.annotation.AnnotationDescription, net.bytebuddy.description.enumeration.EnumerationDescription, net.bytebuddy.description.method.MethodDescription, net.bytebuddy.description.type.TypeDescription, .TypeList, net.bytebuddy.utility.nullability.AlwaysNull, .MaybeNull, net.bytebuddy.jar.asm.*, java.lang.reflect.Array, java.util.List

Annotation appenders are capable of writing annotations to a specified target.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
AnnotationAppender.Default

A default implementation for an annotation appender that writes annotations to a given byte consumer represented by an ASM net.bytebuddy.jar.asm.AnnotationVisitor.

public static class
AnnotationAppender.ForTypeAnnotations

A type visitor that visits all type annotations of a generic type and writes any discovered annotation to a supplied AnnotationAppender.

public static interface
AnnotationAppender.Target

Represents a target for an annotation writing process.

Field Summary

Modifier and TypeField and Description
public static final String
NO_NAME

A constant for informing ASM over ignoring a given name.

Method Summary

Modifier and TypeMethod and Description
public AnnotationAppender

Returns:

Usually this or any other annotation appender capable of writing another annotation to the specified target.
append
(AnnotationDescription
The annotation to be written.
annotationDescription
,
AnnotationValueFilter
The annotation value filter to use.
annotationValueFilter
)

Writes the given annotation to the target that this appender represents.

public AnnotationAppender

Returns:

Usually this or any other annotation appender capable of writing another annotation to the specified target.
append
(AnnotationDescription
The annotation to be written.
annotationDescription
,
AnnotationValueFilter
The annotation value filter to use.
annotationValueFilter
,
int
The type variable's type reference.
typeReference
,
String
The type variable's type path.
typePath
)

Writes the given type annotation to the target that this appender represents.