com.singularsys.jep.walkers
Class PrefixTreeDumper
java.lang.Object
com.singularsys.jep.walkers.PrefixTreeWalker
com.singularsys.jep.walkers.PrefixTreeDumper
public class PrefixTreeDumper
- extends PrefixTreeWalker
Dumps the contents of a tree to a specified stream, or to standard output.
Use this class by calling the walk method.
- Author:
- Richard Morris
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrefixTreeDumper
public PrefixTreeDumper()
PrefixTreeDumper
public PrefixTreeDumper(java.io.PrintStream stream)
dump
public void dump(Node node)
throws JepException
- Throws:
JepException
visit
protected void visit(ASTConstant node,
int nchildren,
int depth)
- Specified by:
visit
in class PrefixTreeWalker
visit
protected void visit(ASTFunNode node,
int nchildren,
int depth)
- Specified by:
visit
in class PrefixTreeWalker
visit
protected void visit(ASTOpNode node,
int nchildren,
int depth)
- Specified by:
visit
in class PrefixTreeWalker
visit
protected void visit(ASTVarNode node,
int nchildren,
int depth)
- Specified by:
visit
in class PrefixTreeWalker
output
protected void output(Node n,
int depth)
Copyright © 2010 Singular Systems http://www.singularsys.com/jep