jltools.frontend
Interface Pass

All Known Implementing Classes:
AbstractPass

public interface Pass

A Pass represents a compiler pass.


Inner Class Summary
static class Pass.Status
          The status of the pass.
 
Field Summary
static Pass.Status DONE
          The pass has run and has succeeded.
static Pass.Status ENQUEUED
          The pass is in the run queue.
static Pass.Status FAILED
          The pass has run and has failed.
static Pass.Status NEW
          The pass is new and has not been added to the run queue.
static Pass.Status RUNNING
          The pass is running.
 
Method Summary
 void reinit()
          Reinitialize the pass so it can be rerun.
 boolean repeat()
          Return true if the pass should be rerun.
 boolean run()
          Run the pass.
 java.util.List runAfter()
          Return the list of passes which we must run after.
 void runAfter(Pass pass)
          Run this pass after pass.
 Pass.Status status()
          Get the status of the pass.
 void status(Pass.Status status)
          Set the status of the pass.
 

Field Detail

NEW

public static final Pass.Status NEW
The pass is new and has not been added to the run queue.

ENQUEUED

public static final Pass.Status ENQUEUED
The pass is in the run queue.

RUNNING

public static final Pass.Status RUNNING
The pass is running.

FAILED

public static final Pass.Status FAILED
The pass has run and has failed. It may still be rerun.

DONE

public static final Pass.Status DONE
The pass has run and has succeeded. It may still be rerun.
Method Detail

status

public Pass.Status status()
Get the status of the pass.

status

public void status(Pass.Status status)
Set the status of the pass.

repeat

public boolean repeat()
Return true if the pass should be rerun.

reinit

public void reinit()
Reinitialize the pass so it can be rerun.

runAfter

public java.util.List runAfter()
Return the list of passes which we must run after.

runAfter

public void runAfter(Pass pass)
Run this pass after pass. This will cause the pass to be rerun if it is currently running.

run

public boolean run()
Run the pass.