Interface MethodAttributeAppender
-
- All Known Implementing Classes:
DispatcherAnnotationPlugin,HashCodeAndEqualsPlugin,HashCodeAndEqualsPlugin.WithNonNullableFields,MethodAttributeAppender.Compound,MethodAttributeAppender.Explicit,MethodAttributeAppender.ForInstrumentedMethod,MethodAttributeAppender.ForReceiverType,MethodAttributeAppender.NoOp,SafeVarargsPlugin.SafeVarargsAppender
public interface MethodAttributeAppenderAn appender that writes attributes or annotations to a given ASMMethodVisitor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMethodAttributeAppender.CompoundA method attribute appender that combines several method attribute appenders to be represented as a single method attribute appender.static classMethodAttributeAppender.ExplicitAppends an annotation to a method or method parameter.static interfaceMethodAttributeAppender.FactoryA factory that creates method attribute appenders for a given type.static classMethodAttributeAppender.ForInstrumentedMethodImplementation of a method attribute appender that writes all annotations of the instrumented method to the method that is being created.static classMethodAttributeAppender.ForReceiverTypeA method attribute appender that writes a receiver type.static classMethodAttributeAppender.NoOpA method attribute appender that does not append any attributes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter)Applies this attribute appender to a given method visitor.
-
-
-
Method Detail
-
apply
void apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter)Applies this attribute appender to a given method visitor.- Parameters:
methodVisitor- The method visitor to which the attributes that are represented by this attribute appender are written to.methodDescription- The description of the method for which the given method visitor creates an instrumentation for.annotationValueFilter- The annotation value filter to apply when the annotations are written.
-
-