|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cornell.cs.cs4120.util.CodeWriterTreePrinter
public class CodeWriterTreePrinter
An TreePrinter implementation designed to print ASTs through a
provided CodeWriter
.
Constructor Summary | |
---|---|
CodeWriterTreePrinter(CodeWriter writer)
Constructs a new TreePrinter instance that prints programs using the given CodeWriter . |
|
CodeWriterTreePrinter(OutputStream o)
Constructs a new TreePrinter instance that prints programs using to the given stream. |
Method Summary | |
---|---|
void |
print(VisualizableTreeNode node)
Prints a tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CodeWriterTreePrinter(CodeWriter writer)
CodeWriter
.
writer
- the CodeWriter
to print topublic CodeWriterTreePrinter(OutputStream o)
o
- the output stream to print toMethod Detail |
---|
public void print(VisualizableTreeNode node)
TreePrinter
print
in interface TreePrinter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |