Class MemberAttributeExtension.ForMethod.AttributeAppendingMethodVisitor

  • Enclosing class:
    MemberAttributeExtension.ForMethod

    private static class MemberAttributeExtension.ForMethod.AttributeAppendingMethodVisitor
    extends org.objectweb.asm.MethodVisitor
    A method visitor to apply a method attribute appender.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void visitCode()  
      void visitEnd()  
      • Methods inherited from class org.objectweb.asm.MethodVisitor

        visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • methodDescription

        private final MethodDescription methodDescription
        The instrumented method.
      • methodAttributeAppender

        private final MethodAttributeAppender methodAttributeAppender
        The field to add annotations to.
      • annotationValueFilter

        private final AnnotationValueFilter annotationValueFilter
        The annotation value filter to apply.
      • applicable

        private boolean applicable
        true if the attribute appender was not yet applied.
    • Constructor Detail

      • AttributeAppendingMethodVisitor

        private AttributeAppendingMethodVisitor​(org.objectweb.asm.MethodVisitor methodVisitor,
                                                MethodDescription methodDescription,
                                                MethodAttributeAppender methodAttributeAppender,
                                                AnnotationValueFilter annotationValueFilter)
        Parameters:
        methodVisitor - The method visitor to apply changes to.
        methodDescription - The method to add annotations to.
        methodAttributeAppender - The annotation value filter to apply.
        annotationValueFilter - The annotation value filter to apply.
    • Method Detail

      • visitCode

        public void visitCode()
        Overrides:
        visitCode in class org.objectweb.asm.MethodVisitor
      • visitEnd

        public void visitEnd()
        Overrides:
        visitEnd in class org.objectweb.asm.MethodVisitor