Class Advice.Delegator.ForDynamicInvocation

    • Constructor Detail

      • ForDynamicInvocation

        protected ForDynamicInvocation​(MethodDescription.InDefinedShape bootstrapMethod)
        Creates a delegator for a dynamic method invocation.
        Parameters:
        bootstrapMethod - The bootstrap method.
    • Method Detail

      • of

        protected static Advice.Delegator of​(MethodDescription.InDefinedShape bootstrapMethod)
        Creates a new dynamic invocation delegator.
        Parameters:
        bootstrapMethod - The bootstrap method or constructor.
        Returns:
        An appropriate delegator.
      • apply

        public void apply​(org.objectweb.asm.MethodVisitor methodVisitor,
                          MethodDescription.InDefinedShape adviceMethod,
                          TypeDescription instrumentedType,
                          MethodDescription instrumentedMethod,
                          boolean exit)
        Materializes an invocation.
        Specified by:
        apply in interface Advice.Delegator
        Parameters:
        methodVisitor - The method visitor to apply the materialization to.
        adviceMethod - The advice method to materialize.
        instrumentedType - The instrumented type.
        instrumentedMethod - The instrumented method.
        exit - true if the materialization is exit advice.