|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxjavadoc.NodePrinter
public final class NodePrinter
This visitor prints a node and all its children to a PrintWriter. The PrintWriter must be passed to the data variable in the jjtAccept method of the node from which printing should start. T print a whole class, call compilationUnit.jjtAccept( new PrintVisitor(), System.out );
| Constructor Summary | |
|---|---|
NodePrinter()
|
|
| Method Summary | |
|---|---|
private static java.lang.String |
addUnicodeEscapes(java.lang.String str)
Describe the method |
protected java.lang.String |
addUnicodeEscapesOld(java.lang.String str)
Describe the method |
static void |
print(SimpleNode node,
java.io.Writer o)
Describe what the method does |
private static void |
print(Token t,
java.io.PrintWriter out)
Describe what the method does |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodePrinter()
| Method Detail |
|---|
public static void print(SimpleNode node,
java.io.Writer o)
node - Describe what the parameter doeso -
private static final void print(Token t,
java.io.PrintWriter out)
t - Describe what the parameter doesout - Describe what the parameter doesprivate static final java.lang.String addUnicodeEscapes(java.lang.String str)
str - Describe the method parameter
protected java.lang.String addUnicodeEscapesOld(java.lang.String str)
str - Describe the method parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||