sofya.graphs.cfg
Interface CFGTransformer

All Known Implementing Classes:
BranchFlowProcessor

public interface CFGTransformer

A CFG transformer is used to apply a transformation (or extension) to a control flow graph during the last phase of CFG construction.

Objects implementing this interface can be registered with the CFGBuilder. The transformations will then be executed, in order of addition, by the CFGBuilder as the final phase of CFG construction.

Version:
09/29/2004
Author:
Alex Kinneer

Method Summary
 void transformCFG(CFG cfg)
          Applies a transformation to a control flow graph.
 

Method Detail

transformCFG

void transformCFG(CFG cfg)
                  throws TransformationException
Applies a transformation to a control flow graph.

Parameters:
cfg - Control flow graph to which the transformation will be applied.
Throws:
TransformationException - If the transformation fails for any reason.