public abstract class PostfixTreeWalker
extends java.lang.Object
PrefixTreeWalker
Constructor and Description |
---|
PostfixTreeWalker() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
supressExaminingChildren(Node child)
Whether to examine the children of this nodes.
|
protected abstract void |
visit(ASTConstant node,
int nchildren,
int depth1)
Visit a constant node
|
protected abstract void |
visit(ASTFunNode node,
int nchildren,
int depth1)
Visit a function node
|
protected abstract void |
visit(ASTOpNode node,
int nchildren,
int depth1)
Visit an operator node
|
protected abstract void |
visit(ASTVarNode node,
int nchildren,
int depth1)
Visit a variable node
|
protected void |
walk(Node top)
Start transversal of the expression.
|
protected void |
walkSubEquations(Node top)
If a supressExaminingChildren() returns true, then the
children of the node will not be visited by default.
|
protected final void walk(Node top) throws JepException
top
- top node for the expressionJepException
protected boolean supressExaminingChildren(Node child)
child
- protected final void walkSubEquations(Node top) throws JepException
top
- JepException
protected abstract void visit(ASTFunNode node, int nchildren, int depth1) throws JepException
node
- the current node being visitednchildren
- number of children of the nodedepth1
- depth of tree, root node is depth 1.JepException
protected abstract void visit(ASTOpNode node, int nchildren, int depth1) throws JepException
node
- the current node being visitednchildren
- number of children of the nodedepth1
- depth of tree, root node is depth 1.JepException
protected abstract void visit(ASTVarNode node, int nchildren, int depth1) throws JepException
node
- the current node being visitednchildren
- number of children of the nodedepth1
- depth of tree, root node is depth 1.JepException
protected abstract void visit(ASTConstant node, int nchildren, int depth1) throws JepException
node
- the current node being visitednchildren
- number of children of the nodedepth1
- depth of tree, root node is depth 1.JepException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep