Class 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.
    • Constructor Detail

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

      • visitMethod

        public org.objectweb.asm.MethodVisitor visitMethod​(int modifiers,
                                                           String internalName,
                                                           String descriptor,
                                                           String signature,
                                                           String[] exceptions)
        Overrides:
        visitMethod in class org.objectweb.asm.ClassVisitor