public final class Substitute extends ASTVisitorBase
Modifier and Type | Method and Description |
---|---|
boolean |
isCloned()
Signal that visitor shall clone tree.
|
static Expression |
substitute(Expression exp,
ValueDeclIdentifier[] ident,
Expression[] subst,
boolean repeat)
Return expression with simultaneous variable substitutions performed.
|
visit
public static Expression substitute(Expression exp, ValueDeclIdentifier[] ident, Expression[] subst, boolean repeat)
exp
- an expression.ident
- an array of identifiers.subst
- an array of expressions of the same length as ident;
if repeat is true, none of the expressions contains a free
occurence of any identifier in ident.repeat
- true iff the substitution is to be iterated until
no more applicable.public boolean isCloned()
isCloned
in interface ASTVisitor
isCloned
in class ASTVisitorBase