Class ExprTransformSubstitute

  • All Implemented Interfaces:
    ExprTransform

    public class ExprTransformSubstitute
    extends ExprTransformCopy
    An expression transformer that substitutes another expression in place of variables

    Primarily introduced in order to support the new UserDefinedFunction capabilities

    • Constructor Detail

      • ExprTransformSubstitute

        public ExprTransformSubstitute​(Var find,
                                       Expr replace)
        Creates a simple transform that replaces any occurrence of the given variable with the given expression
        Parameters:
        find - Variable to find
        replace - Expression to replace with
      • ExprTransformSubstitute

        public ExprTransformSubstitute​(java.util.Map<java.lang.String,​Expr> substitutions)
        Creates an advanced transform that uses the given map to make substitutions
        Parameters:
        substitutions - Substitutions from variables to expressions