Class AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor

java.lang.Object
org.objectweb.asm.ClassVisitor
net.bytebuddy.asm.AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor
Enclosing class:
AsmVisitorWrapper.ForDeclaredMethods

protected class AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor extends org.objectweb.asm.ClassVisitor
A class visitor that applies the outer ASM visitor for identifying declared methods.
  • Field Details

    • instrumentedType

      private final TypeDescription instrumentedType
      The instrumented type.
    • implementationContext

      private final Implementation.Context implementationContext
      The implementation context to use.
    • typePool

      private final TypePool typePool
      The type pool to use.
    • writerFlags

      private final int writerFlags
      The ASM ClassWriter reader flags to consider.
    • readerFlags

      private final int readerFlags
      The ASM ClassReader reader flags to consider.
    • methods

      private final Map<String,MethodDescription> methods
      A mapping of fields by their name.
  • Constructor Details

    • DispatchingVisitor

      protected DispatchingVisitor(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, Implementation.Context implementationContext, TypePool typePool, Map<String,MethodDescription> methods, int writerFlags, int readerFlags)
      Creates a new dispatching visitor.
      Parameters:
      classVisitor - The underlying class visitor.
      instrumentedType - The instrumented type.
      implementationContext - The implementation context to use.
      typePool - The type pool to use.
      methods - The methods that are declared by the instrumented type or virtually inherited.
      writerFlags - The ASM ClassWriter flags to consider.
      readerFlags - The ASM ClassReader flags to consider.
  • Method Details