Enum MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression

    • Constructor Detail

      • OfOriginalExpression

        private OfOriginalExpression()
    • Method Detail

      • values

        public static MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression c : MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • resolve

        public MemberSubstitution.Substitution.Chain.Step.Resolution resolve​(MemberSubstitution.Target target,
                                                                             TypeList.Generic parameters,
                                                                             TypeDescription.Generic result,
                                                                             JavaConstant.MethodHandle methodHandle,
                                                                             StackManipulation stackManipulation,
                                                                             TypeDescription.Generic current,
                                                                             java.util.Map<java.lang.Integer,​java.lang.Integer> offsets,
                                                                             int freeOffset)
        Resolves this step of a substitution chain.
        Specified by:
        resolve in interface MemberSubstitution.Substitution.Chain.Step
        Parameters:
        target - The target member of invokedynamic invocation.
        parameters - The parameters of the substituted element.
        result - The resulting type of the substituted element.
        methodHandle - A method handle of the stackManipulation invocation that is being substituted.
        stackManipulation - The byte code instruction that is being substituted.
        current - The current type of the applied substitution that is the top element on the operand stack.
        offsets - The arguments of the substituted byte code element mapped to their local variable offsets.
        freeOffset - The first free offset in the local variable array.
        Returns:
        A resolved substitution step for the supplied inputs.