Class MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private MethodDescription methodDescription
      The invoked method or constructor.
      private java.util.Map<java.lang.Integer,​java.lang.Integer> substitutions
      A mapping of substituted parameter indices.
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory​(java.lang.reflect.Constructor<?> constructor)
      Creates a factory for a method invocation without parameter substitutions.
      Factory​(java.lang.reflect.Method method)
      Creates a factory for a method invocation without parameter substitutions.
      Factory​(MethodDescription methodDescription)
      Creates a factory for a method invocation without parameter substitutions.
      Factory​(MethodDescription methodDescription, java.util.Map<java.lang.Integer,​java.lang.Integer> substitutions)
      Creates a factory for a method invocation.
    • Field Detail

      • methodDescription

        private final MethodDescription methodDescription
        The invoked method or constructor.
      • substitutions

        private final java.util.Map<java.lang.Integer,​java.lang.Integer> substitutions
        A mapping of substituted parameter indices. For targets that are non-static methods, the targeted index is increased by one.
    • Constructor Detail

      • Factory

        public Factory​(java.lang.reflect.Method method)
        Creates a factory for a method invocation without parameter substitutions.
        Parameters:
        method - The invoked method.
      • Factory

        public Factory​(java.lang.reflect.Constructor<?> constructor)
        Creates a factory for a method invocation without parameter substitutions.
        Parameters:
        constructor - The constructor.
      • Factory

        public Factory​(MethodDescription methodDescription)
        Creates a factory for a method invocation without parameter substitutions.
        Parameters:
        methodDescription - The invoked method or constructor.
      • Factory

        public Factory​(MethodDescription methodDescription,
                       java.util.Map<java.lang.Integer,​java.lang.Integer> substitutions)
        Creates a factory for a method invocation.
        Parameters:
        methodDescription - The invoked method or constructor.
        substitutions - A mapping of substituted parameter indices. For targets that are non-static methods, the targeted index is increased by one.