Package jtb.visitor
Class TreeDumper
- Object
-
- DepthFirstVisitor
-
- TreeDumper
-
- All Implemented Interfaces:
Visitor
public class TreeDumper extends DepthFirstVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintWriter
out
-
Fields inherited from class DepthFirstVisitor
indent, indents
-
-
Constructor Summary
Constructors Constructor Description TreeDumper()
TreeDumper(boolean debug)
TreeDumper(OutputStream o)
TreeDumper(OutputStream o, boolean debug)
TreeDumper(Writer o)
TreeDumper(Writer o, boolean debug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flushWriter()
void
printSpecials(boolean b)
void
resetPosition()
void
startAtNextToken()
void
visit(NodeToken n)
-
Methods inherited from class DepthFirstVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Field Detail
-
out
protected PrintWriter out
-
-
Constructor Detail
-
TreeDumper
public TreeDumper()
-
TreeDumper
public TreeDumper(Writer o)
-
TreeDumper
public TreeDumper(OutputStream o)
-
TreeDumper
public TreeDumper(boolean debug)
-
TreeDumper
public TreeDumper(Writer o, boolean debug)
-
TreeDumper
public TreeDumper(OutputStream o, boolean debug)
-
-
Method Detail
-
flushWriter
public void flushWriter()
-
printSpecials
public void printSpecials(boolean b)
-
startAtNextToken
public void startAtNextToken()
-
resetPosition
public void resetPosition()
-
-