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, visitchildrenHaveChanged, copyChildrenIfNeeded, getFunctionTable, getLightWeightInstance, getNodeFactory, getOperatorTable, getVariableTable, init, visit, visitChildren, visitNodepublic EquationExtractor()
public EquationExtractor(XJep j)
public Node replaceVariableByExpressions(Node node) throws JepException
node - root of expressionJepExceptionpublic Node replaceRHSVariablesByEquations(Node node) throws JepException
node - an equation of the form g:=f^2-1JepExceptionpublic java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws JepException
DoNothingVisitorvisit in interface ParserVisitorvisit in class DeepCopyVisitorJepExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep