polyglot.frontend
Class VisitorPass

java.lang.Object
  extended by polyglot.frontend.AbstractPass
      extended by polyglot.frontend.VisitorPass
All Implemented Interfaces:
Pass
Direct Known Subclasses:
ConstantCheckPass, SignaturesDisambiguated.MyPass, SupertypesDisambiguated.MyPass

public class VisitorPass
extends AbstractPass

A pass which runs a visitor.


Field Summary
 
Fields inherited from class polyglot.frontend.AbstractPass
exclusive_time, goal, inclusive_time
 
Constructor Summary
VisitorPass(Goal goal)
           
VisitorPass(Goal goal, NodeVisitor v)
           
 
Method Summary
 java.lang.String name()
          The human-readable name of the pass.
 boolean run()
          Run the pass, returning true on success.
 NodeVisitor visitor()
           
 void visitor(NodeVisitor v)
           
 
Methods inherited from class polyglot.frontend.AbstractPass
exclusiveTime, goal, inclusiveTime, resetTimers, toggleTimers, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisitorPass

public VisitorPass(Goal goal)

VisitorPass

public VisitorPass(Goal goal,
                   NodeVisitor v)
Method Detail

visitor

public void visitor(NodeVisitor v)

visitor

public NodeVisitor visitor()

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

name

public java.lang.String name()
Description copied from class: AbstractPass
The human-readable name of the pass.

Specified by:
name in interface Pass
Overrides:
name in class AbstractPass