Package net.bytebuddy.implementation.attribute
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e. fields, types and byte code methods. A common Java attribute is a Java annotation which are represented by
the
Annotation
interface.-
Interface Summary Interface Description AnnotationAppender Annotation appenders are capable of writing annotations to a specified target.AnnotationAppender.Target Represents a target for an annotation writing process.AnnotationValueFilter An annotation value filter is responsible for determining which values should be skipped and rather be represented as an annotation type's default values when writing an annotation to a class file.AnnotationValueFilter.Factory A factory for creating an annotation value filter for an annotation's target.FieldAttributeAppender An appender that writes attributes or annotations to a given ASMFieldVisitor
.FieldAttributeAppender.Factory A factory that creates field attribute appenders for a given type.MethodAttributeAppender An appender that writes attributes or annotations to a given ASMMethodVisitor
.MethodAttributeAppender.Explicit.Target Represents the target on which this method attribute appender should write its annotations to.MethodAttributeAppender.Factory A factory that creates method attribute appenders for a given type.RecordComponentAttributeAppender An appender that writes attributes or annotations to a given ASMRecordComponentVisitor
.RecordComponentAttributeAppender.Factory A factory that creates record component attribute appenders for a given type.TypeAttributeAppender An appender that writes attributes or annotations to a given ASMClassVisitor
. -
Class Summary Class Description AnnotationAppender.Default A default implementation for an annotation appender that writes annotations to a given byte consumer represented by an ASMAnnotationVisitor
.AnnotationAppender.ForTypeAnnotations A type visitor that visits all type annotations of a generic type and writes any discovered annotation to a suppliedAnnotationAppender
.AnnotationAppender.Target.OnField Target for an annotation that is written to a Java field.AnnotationAppender.Target.OnMethod Target for an annotation that is written to a Java method or constructor.AnnotationAppender.Target.OnMethodParameter Target for an annotation that is written to a Java method or constructor parameter.AnnotationAppender.Target.OnRecordComponent Target for an annotation that is written to a Java record component.AnnotationAppender.Target.OnType Target for an annotation that is written to a Java type.FieldAttributeAppender.Compound A field attribute appender that combines several method attribute appenders to be represented as a single field attribute appender.FieldAttributeAppender.Explicit Appends an annotation to a field.FieldAttributeAppender.Factory.Compound A field attribute appender factory that combines several field attribute appender factories to be represented as a single factory.MethodAttributeAppender.Compound A method attribute appender that combines several method attribute appenders to be represented as a single method attribute appender.MethodAttributeAppender.Explicit Appends an annotation to a method or method parameter.MethodAttributeAppender.Explicit.Target.OnMethodParameter A method attribute appender target for writing annotations onto a given method parameter.MethodAttributeAppender.Factory.Compound A method attribute appender factory that combines several method attribute appender factories to be represented as a single factory.MethodAttributeAppender.ForReceiverType A method attribute appender that writes a receiver type.RecordComponentAttributeAppender.Compound A record component attribute appender that combines several method attribute appenders to be represented as a single record component attribute appender.RecordComponentAttributeAppender.Explicit Appends an annotation to a record component.RecordComponentAttributeAppender.Factory.Compound A record component attribute appender factory that combines several record component attribute appender factories to be represented as a single factory.TypeAttributeAppender.Compound A compound type attribute appender that concatenates a number of other attribute appenders.TypeAttributeAppender.Explicit An attribute appender that appends a single annotation to a given type.TypeAttributeAppender.ForInstrumentedType.Differentiating A type attribute appender that writes all annotations of the instrumented but excludes annotations up to a given index. -
Enum Summary Enum Description AnnotationRetention An annotation retention strategy decides if annotations that are contained within a class file are preserved upon redefining or rebasing a method.AnnotationValueFilter.Default A default implementation of an annotation value filter that applies the same strategy for any type, field or method.FieldAttributeAppender.ForInstrumentedField An attribute appender that writes all annotations that are declared on a field.FieldAttributeAppender.NoOp A field attribute appender that does not append any attributes.MethodAttributeAppender.Explicit.Target.OnMethod A method attribute appender target for writing annotations directly onto the method.MethodAttributeAppender.ForInstrumentedMethod Implementation of a method attribute appender that writes all annotations of the instrumented method to the method that is being created.MethodAttributeAppender.NoOp A method attribute appender that does not append any attributes.RecordComponentAttributeAppender.ForInstrumentedRecordComponent An attribute appender that writes all annotations that are declared on a record component.RecordComponentAttributeAppender.NoOp A record component attribute appender that does not append any attributes.TypeAttributeAppender.ForInstrumentedType An attribute appender that writes all annotations that are found on a given target type to the instrumented type this type attribute appender is applied onto.TypeAttributeAppender.NoOp A type attribute appender that does not append any attributes.