xjavadoc

Class NodePrinter


public final class NodePrinter
extends java.lang.Object

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 );
Author:
Aslak Helles?y

Method Summary

private static String
addUnicodeEscapes(String str)
Describe the method
protected String
addUnicodeEscapesOld(String str)
Describe the method
static void
print(SimpleNode node, Writer o)
Describe what the method does
private static void
print(Token t, PrintWriter out)
Describe what the method does

Method Details

addUnicodeEscapes

private static final String addUnicodeEscapes(String str)
Describe the method
Parameters:
str - Describe the method parameter
Returns:
Describe the return value

addUnicodeEscapesOld

protected String addUnicodeEscapesOld(String str)
Describe the method
Parameters:
str - Describe the method parameter
Returns:
Describe the return value

print

public static void print(SimpleNode node,
                         Writer o)
Describe what the method does
Parameters:
node - Describe what the parameter does
o -

print

private static final void print(Token t,
                                PrintWriter out)
Describe what the method does
Parameters:
t - Describe what the parameter does
out - Describe what the parameter does