forge.transform
Class BatchTransformer

java.lang.Object
  extended by forge.transform.BatchTransformer
All Implemented Interfaces:
Transformer

public final class BatchTransformer
extends java.lang.Object
implements Transformer

Applies a list of transformers in a row.

Author:
Greg Dennis (gdennis@mit.edu)

Field Summary
 
Fields inherited from interface forge.transform.Transformer
IDENTITY
 
Constructor Summary
BatchTransformer(java.util.List<Transformer> transformers)
           
 
Method Summary
 CFGStmt sourceStmt(CFGStmt targetStmt)
          Returns the source update from which the given target was transformed.
 ForgeCFG transform(ForgeCFG source)
          Performs the transformation and returns the transformed procedure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchTransformer

public BatchTransformer(java.util.List<Transformer> transformers)
Method Detail

transform

public ForgeCFG transform(ForgeCFG source)
Description copied from interface: Transformer
Performs the transformation and returns the transformed procedure. The returned procedure may be == to the give procedure.

Specified by:
transform in interface Transformer

sourceStmt

public CFGStmt sourceStmt(CFGStmt targetStmt)
Description copied from interface: Transformer
Returns the source update from which the given target was transformed.

Specified by:
sourceStmt in interface Transformer