Class MemberAttributeExtension.ForMethod.AttributeAppendingMethodVisitor

java.lang.Object
org.objectweb.asm.MethodVisitor
net.bytebuddy.asm.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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final AnnotationValueFilter
    The annotation value filter to apply.
    private boolean
    true if the attribute appender was not yet applied.
    The field to add annotations to.
    private final MethodDescription
    The instrumented method.

    Fields inherited from class org.objectweb.asm.MethodVisitor

    api, mv
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    AttributeAppendingMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, MethodAttributeAppender methodAttributeAppender, AnnotationValueFilter annotationValueFilter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     

    Methods inherited from class org.objectweb.asm.MethodVisitor

    getDelegate, 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 Details

    • 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 Details

    • 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 Details

    • visitCode

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

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