Class MethodAttributeAppender.Compound

  • All Implemented Interfaces:
    MethodAttributeAppender
    Enclosing interface:
    MethodAttributeAppender

    public static class MethodAttributeAppender.Compound
    extends java.lang.Object
    implements MethodAttributeAppender
    A method attribute appender that combines several method attribute appenders to be represented as a single method attribute appender.
    • 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)
        Description copied from interface: MethodAttributeAppender
        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.