public class EquationExtractor extends DeepCopyVisitor
y
is a variable which has an equation it will be replaced by its equation.Constructor and Description |
---|
EquationExtractor() |
EquationExtractor(XJep j) |
Modifier and Type | Method and Description |
---|---|
Node |
replaceRHSVariablesByEquations(Node node)
Replace variables on the right had side of an assignment by their equations
|
Node |
replaceVariableByExpressions(Node node)
Replace all symbolic variable by their equations
|
java.lang.Object |
visit(ASTVarNode node,
java.lang.Object data)
Visit a variable node.
|
deepCopy, visit, visit, visit
childrenHaveChanged, copyChildrenIfNeeded, getFunctionTable, getLightWeightInstance, getNodeFactory, getOperatorTable, getVariableTable, init, visit, visitChildren, visitNode
public EquationExtractor()
public EquationExtractor(XJep j)
public Node replaceVariableByExpressions(Node node) throws JepException
node
- root of expressionJepException
public Node replaceRHSVariablesByEquations(Node node) throws JepException
node
- an equation of the form g:=f^2-1
JepException
public java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws JepException
DoNothingVisitor
visit
in interface ParserVisitor
visit
in class DeepCopyVisitor
JepException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep