Class MemberSubstitution.SubstitutingMethodVisitor

    • Constructor Detail

      • SubstitutingMethodVisitor

        protected SubstitutingMethodVisitor​(org.objectweb.asm.MethodVisitor methodVisitor,
                                            TypeDescription instrumentedType,
                                            MethodDescription instrumentedMethod,
                                            MethodGraph.Compiler methodGraphCompiler,
                                            boolean strict,
                                            MemberSubstitution.Replacement replacement,
                                            Implementation.Context implementationContext,
                                            TypePool typePool,
                                            boolean virtualPrivateCalls)
        Creates a new substituting method visitor.
        Parameters:
        methodVisitor - The method visitor to delegate to.
        instrumentedType - The instrumented type.
        instrumentedMethod - The instrumented method.
        methodGraphCompiler - The method graph compiler to use.
        strict - true if the method processing should be strict where an exception is raised if a member cannot be found.
        replacement - The replacement to use for creating substitutions.
        implementationContext - The implementation context to use.
        typePool - The type pool to use.
        virtualPrivateCalls - true, virtual method calls might target private methods in accordance to the nest mate specification.
    • Method Detail

      • visitFieldInsn

        public void visitFieldInsn​(int opcode,
                                   String owner,
                                   String internalName,
                                   String descriptor)
        Overrides:
        visitFieldInsn in class org.objectweb.asm.MethodVisitor
      • visitMethodInsn

        public void visitMethodInsn​(int opcode,
                                    String owner,
                                    String internalName,
                                    String descriptor,
                                    boolean isInterface)
        Overrides:
        visitMethodInsn in class org.objectweb.asm.MethodVisitor
      • visitMaxs

        public void visitMaxs​(int stackSize,
                              int localVariableLength)
        Overrides:
        visitMaxs in class org.objectweb.asm.MethodVisitor