public class VisitorReplaceAll extends VisitorExpr
function.apply()
method returns a non F.NIL
value.
The visitors visit()
methods return F.NIL
if no
substitution occurred.Constructor and Description |
---|
VisitorReplaceAll(java.util.function.Function<IExpr,IExpr> function) |
VisitorReplaceAll(java.util.function.Function<IExpr,IExpr> function,
int offset) |
VisitorReplaceAll(IAST ast) |
VisitorReplaceAll(IAST ast,
int offset) |
Modifier and Type | Method and Description |
---|---|
IExpr |
visit(IAST ast) |
IExpr |
visit(IComplex element) |
IExpr |
visit(IComplexNum element) |
IExpr |
visit(IFraction element) |
IExpr |
visit(IInteger element) |
IExpr |
visit(INum element) |
IExpr |
visit(IPattern element) |
IExpr |
visit(IPatternSequence element) |
IExpr |
visit(IStringX element) |
IExpr |
visit(ISymbol element) |
protected IExpr |
visitAST(IAST ast) |
visit1, visit2, visit3
public VisitorReplaceAll(java.util.function.Function<IExpr,IExpr> function, int offset)
public VisitorReplaceAll(IAST ast)
public VisitorReplaceAll(IAST ast, int offset)
public IExpr visit(IInteger element)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possiblepublic IExpr visit(IFraction element)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possiblepublic IExpr visit(IComplex element)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possiblepublic IExpr visit(INum element)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possiblepublic IExpr visit(IComplexNum element)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possiblepublic IExpr visit(ISymbol element)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possiblepublic IExpr visit(IPattern element)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possiblepublic IExpr visit(IPatternSequence element)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possiblepublic IExpr visit(IStringX element)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possiblepublic IExpr visit(IAST ast)
visit
in interface IVisitor<IExpr>
visit
in class VisitorExpr
F.NIL
, if no evaluation is possibleprotected IExpr visitAST(IAST ast)
visitAST
in class VisitorExpr
IAST
with changed evaluated
subexpressions, or F.NIL
, if no evaluation is
possible