Class MethodAttributeAppender.Compound

    • Field Detail

      • methodAttributeAppenders

        private final java.util.List<MethodAttributeAppender> methodAttributeAppenders
        The method attribute appenders this compound appender represents in their application order.
    • Constructor Detail

      • Compound

        public Compound​(MethodAttributeAppender... methodAttributeAppender)
        Creates a new compound method attribute appender.
        Parameters:
        methodAttributeAppender - The method attribute appenders that are to be combined by this compound appender in the order of their application.
      • Compound

        public Compound​(java.util.List<? extends MethodAttributeAppender> methodAttributeAppenders)
        Creates a new compound method attribute appender.
        Parameters:
        methodAttributeAppenders - The method attribute appenders that are to be combined by this compound appender in the order of their application.
    • Method Detail

      • apply

        public void apply​(org.objectweb.asm.MethodVisitor methodVisitor,
                          MethodDescription methodDescription,
                          AnnotationValueFilter annotationValueFilter)
        Applies this attribute appender to a given method visitor.
        Specified by:
        apply in interface MethodAttributeAppender
        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.