Class MemberSubstitution.WithoutSpecification.ForMatchedMethod

    • Field Detail

      • includeVirtualCalls

        private final boolean includeVirtualCalls
        true if this specification includes virtual invocations.
      • includeSuperCalls

        private final boolean includeSuperCalls
        true if this specification includes super invocations.
    • Constructor Detail

      • ForMatchedMethod

        protected ForMatchedMethod​(MethodGraph.Compiler methodGraphCompiler,
                                   MemberSubstitution.TypePoolResolver typePoolResolver,
                                   boolean strict,
                                   boolean failIfNoMatch,
                                   MemberSubstitution.Replacement.Factory replacementFactory,
                                   ElementMatcher<? super MethodDescription> matcher)
        Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.
        Parameters:
        methodGraphCompiler - The method graph compiler to use.
        typePoolResolver - The type pool resolver to use.
        strict - true if the method processing should be strict where an exception is raised if a member cannot be found.
        failIfNoMatch - true if the instrumentation should fail if applied to a method without match.
        replacementFactory - The replacement factory to use.
        matcher - A matcher for any method or constructor that should be substituted.
      • ForMatchedMethod

        protected ForMatchedMethod​(MethodGraph.Compiler methodGraphCompiler,
                                   MemberSubstitution.TypePoolResolver typePoolResolver,
                                   boolean strict,
                                   boolean failIfNoMatch,
                                   MemberSubstitution.Replacement.Factory replacementFactory,
                                   ElementMatcher<? super MethodDescription> matcher,
                                   boolean includeVirtualCalls,
                                   boolean includeSuperCalls)
        Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.
        Parameters:
        methodGraphCompiler - The method graph compiler to use.
        typePoolResolver - The type pool resolver to use.
        strict - true if the method processing should be strict where an exception is raised if a member cannot be found.
        failIfNoMatch - true if the instrumentation should fail if applied to a method without match.
        replacementFactory - The replacement factory to use.
        matcher - A matcher for any method or constructor that should be substituted.
        includeVirtualCalls - true if this specification includes virtual invocations.
        includeSuperCalls - true if this specification includes super invocations.