com.veromodo.tempo.filters
Class StageData

java.lang.Object
  extended by com.veromodo.tempo.filters.StageData

public class StageData
extends java.lang.Object

Commmunication data-structure. An instance of this class carries all the bits of information that a stage can expect from the previous stage. Namely, it will contain the root of the AST, the semantic environment, the collection of options passed to the front-end and the vector of file names that have been analyzed to compile the specification.

Author:
L. Michel

Constructor Summary
StageData(ASTListRoot r, Environment env, OptionMap options, java.util.Collection<java.lang.String> fileLoc)
          Default constructor.
 
Method Summary
 Environment getEnv()
          Accessor
 java.util.Collection<java.lang.String> getFileLocations()
          Accessor
 OptionMap getOptions()
          Accessor
 ASTListRoot getRoot()
          Accessor
 java.lang.String toString()
          Debugging
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StageData

public StageData(ASTListRoot r,
                 Environment env,
                 OptionMap options,
                 java.util.Collection<java.lang.String> fileLoc)
Default constructor. The constructor creates a stage data structure that will be passed down to the next stage.

Parameters:
r - the root of the AST
env - the semantic environment used by the semantic analysis (all the symbol tables)
options - the set of options received by the end-user interface (commmand line or eclipse)
fileLoc - the list of files that was used to produce the AST
Method Detail

getRoot

public ASTListRoot getRoot()
Accessor

Returns:
Retrieves the root of the AST

getEnv

public Environment getEnv()
Accessor

Returns:
the semantic environment

getOptions

public OptionMap getOptions()
Accessor

Returns:
the set of options from the user-interface.

getFileLocations

public java.util.Collection<java.lang.String> getFileLocations()
Accessor

Returns:
the list of files that was parsed to produce the AST

toString

public java.lang.String toString()
Debugging

Overrides:
toString in class java.lang.Object
Returns:
a human readable printout of the stage data