de.hunsicker.jalopy.printer
Class PrinterFactory

java.lang.Object
  |
  +--de.hunsicker.jalopy.printer.PrinterFactory

public final class PrinterFactory
extends java.lang.Object

Central facility to create printers.

Version:
$Revision: 1.6.2.6 $
Author:
Marco Hunsicker

Field Summary
static antlr.collections.AST lastChild
           
 
Method Summary
static Printer create(antlr.collections.AST node, NodeWriter out)
          Returns a printer instance for the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastChild

public static antlr.collections.AST lastChild
Method Detail

create

public static Printer create(antlr.collections.AST node,
                             NodeWriter out)
Returns a printer instance for the given node.

Parameters:
node - the node to print.
out - TODO
Returns:
The printer object for the given node.
Throws:
java.lang.IllegalArgumentException - if no viable printer for the given node is known by the factory.


Copyright © 1997-2005 Jalopy. All Rights Reserved.