harpoon.Main
Class CompStagePipeline

java.lang.Object
  extended by harpoon.Main.CompilerStage
      extended by harpoon.Main.CompStagePipeline

public class CompStagePipeline
extends CompilerStage

CompStagePipeline is a special CompilerStage that is the sequential composition of a list of CompilerStages.

Version:
$Id: CompStagePipeline.java,v 1.6 2004/02/08 03:21:38 cananian Exp $
Author:
Alexandru Salcianu <salcianu@MIT.edu>

Constructor Summary
CompStagePipeline(CompilerStage s1, CompilerStage s2)
           
CompStagePipeline(CompilerStage s1, CompilerStage s2, String name)
           
CompStagePipeline(List<CompilerStage> stages)
           
CompStagePipeline(List<CompilerStage> stages, String name)
          Creates a CompStagePipeline.
 
Method Summary
 CompilerState action(CompilerState cs)
           
 boolean enabled()
           
 List<Option> getOptions()
           
protected  CompilerStage getStage(int count)
           
 
Methods inherited from class harpoon.Main.CompilerStage
name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompStagePipeline

public CompStagePipeline(List<CompilerStage> stages,
                         String name)
Creates a CompStagePipeline.


CompStagePipeline

public CompStagePipeline(List<CompilerStage> stages)

CompStagePipeline

public CompStagePipeline(CompilerStage s1,
                         CompilerStage s2,
                         String name)

CompStagePipeline

public CompStagePipeline(CompilerStage s1,
                         CompilerStage s2)
Method Detail

getStage

protected CompilerStage getStage(int count)
Returns:
countth CompilerStage from this pipeline.

getOptions

public List<Option> getOptions()
Specified by:
getOptions in class CompilerStage

enabled

public boolean enabled()
Specified by:
enabled in class CompilerStage

action

public final CompilerState action(CompilerState cs)
Specified by:
action in class CompilerStage