org.teatrove.tea.compiler
Class TreePrinter
java.lang.Object
org.teatrove.tea.compiler.CodeGenerator
org.teatrove.tea.compiler.TreePrinter
public class TreePrinter
- extends CodeGenerator
A class that prints a parse tree. To print, call the writeTo method.
- Author:
- Brian S O'Neill
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreePrinter
public TreePrinter(Template tree)
TreePrinter
public TreePrinter(Template tree,
String indentStr)
TreePrinter
public TreePrinter(Template tree,
boolean extraParens)
TreePrinter
public TreePrinter(Template tree,
String indentStr,
boolean extraParens)
writeTo
public void writeTo(OutputStream out)
throws IOException
- Specified by:
writeTo in class CodeGenerator
- Throws:
IOException
toString
public static String toString(Node node)
- Converts any node to a String.
toString
public static String toString(Node node,
String indentStr)
- Converts any node to a String.
Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.