xjavadoc

Class NodePrinter

public final class NodePrinter extends 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 Hellesxy

UNKNOWN: 8. januar 2002 replace PrintWriter with PrintWriter and remove the addUnicodeEscapes()

Method Summary
static StringaddUnicodeEscapes(String str)
Describe the method
protected StringaddUnicodeEscapesOld(String str)
Describe the method
static voidprint(SimpleNode node, Writer o)
Describe what the method does
static voidprint(Token t, PrintWriter out)
Describe what the method does

Method Detail

addUnicodeEscapes

private static final String addUnicodeEscapes(String str)
Describe the method

Parameters: str Describe the method parameter

Returns: Describe the return value

UNKNOWN: Describe the method Describe the method parameter Write javadocs for return value

addUnicodeEscapesOld

protected String addUnicodeEscapesOld(String str)
Describe the method

Parameters: str Describe the method parameter

Returns: Describe the return value

UNKNOWN: Describe the method Describe the method parameter Write javadocs for return value

print

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

Parameters: node Describe what the parameter does o

UNKNOWN: Write javadocs for method parameter Write javadocs for method Write javadocs for method parameter Write javadocs for method parameter Write javadocs for return value

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

UNKNOWN: Write javadocs for method Write javadocs for method parameter Write javadocs for method parameter