public class ExprTransformSubstitute extends ExprTransformCopy
Primarily introduced in order to support the new UserDefinedFunction
capabilities
COPY_ALWAYS, COPY_ONLY_ON_CHANGE
Constructor and Description |
---|
ExprTransformSubstitute(Map<String,Expr> substitutions)
Creates an advanced transform that uses the given map to make substitutions
|
ExprTransformSubstitute(Var find,
Expr replace)
Creates a simple transform that replaces any occurrence of the given variable with the given expression
|
public ExprTransformSubstitute(Var find, Expr replace)
find
- Variable to findreplace
- Expression to replace withpublic Expr transform(ExprVar exprVar)
transform
in interface ExprTransform
transform
in class ExprTransformCopy
Licenced under the Apache License, Version 2.0