polyglot.frontend
Class PrettyPrintPass

java.lang.Object
  extended by polyglot.frontend.AbstractPass
      extended by polyglot.frontend.PrettyPrintPass
All Implemented Interfaces:
Pass

public class PrettyPrintPass
extends AbstractPass

An output pass generates output code from the processed AST.


Field Summary
protected  PrettyPrinter pp
           
protected  CodeWriter w
           
 
Fields inherited from class polyglot.frontend.AbstractPass
exclusive_time, goal, inclusive_time
 
Constructor Summary
PrettyPrintPass(Goal goal, CodeWriter w, PrettyPrinter pp)
          Create a PrettyPrinter.
 
Method Summary
 boolean run()
          Run the pass, returning true on success.
 
Methods inherited from class polyglot.frontend.AbstractPass
exclusiveTime, goal, inclusiveTime, name, resetTimers, toggleTimers, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pp

protected PrettyPrinter pp

w

protected CodeWriter w
Constructor Detail

PrettyPrintPass

public PrettyPrintPass(Goal goal,
                       CodeWriter w,
                       PrettyPrinter pp)
Create a PrettyPrinter. The output of the visitor is a collection of files whose names are added to the collection outputFiles.

Method Detail

run

public boolean run()
Description copied from class: AbstractPass
Run the pass, returning true on success.

Specified by:
run in interface Pass
Specified by:
run in class AbstractPass