| java.lang.Object org.acm.seguin.refactor.DefaultComplexTransform
DefaultComplexTransform | public class DefaultComplexTransform implements ComplexTransform(Code) | | Base class for a program that reads in an abstract syntax tree, transforms
the code, and rewrites the file to disk.
author: Chris Seguin |
DefaultComplexTransform | public DefaultComplexTransform()(Code) | | Constructor for the ComplexTransform object
Parameters: init - the undo action |
add | public void add(TransformAST value)(Code) | | Adds a syntax tree transformation
Parameters: value - Description of Parameter |
apply | public void apply(File inputFile, File outputFile)(Code) | | Given a file, applies a set of transformations to it
Parameters: inputFile - Description of Parameter Parameters: outputFile - Description of Parameter |
clear | public void clear()(Code) | | Clears all the transforms
|
createFile | public void createFile(File file)(Code) | | Creates a new file
Parameters: file - Description of Parameter |
hasAnyChanges | public boolean hasAnyChanges()(Code) | | Is it worth applying the transforms
true if there is any |
removeFile | public void removeFile(File file)(Code) | | Removes an old file
Parameters: file - Description of Parameter |
|
|