|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.refactor.DefaultComplexTransform
public class DefaultComplexTransform
Base class for a program that reads in an abstract syntax tree, transforms the code, and rewrites the file to disk.
Constructor Summary | |
---|---|
DefaultComplexTransform()
Constructor for the ComplexTransform object |
Method Summary | |
---|---|
void |
add(TransformAST value)
Adds a syntax tree transformation |
void |
apply(java.io.File inputFile,
java.io.File outputFile)
Given a file, applies a set of transformations to it |
void |
clear()
Clears all the transforms |
void |
createFile(java.io.File file)
Creates a new file |
boolean |
hasAnyChanges()
Is it worth applying the transforms |
void |
removeFile(java.io.File file)
Removes an old file |
void |
setUndoAction(UndoAction init)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultComplexTransform()
init
- the undo actionMethod Detail |
---|
public void setUndoAction(UndoAction init)
setUndoAction
in interface ComplexTransform
public void add(TransformAST value)
add
in interface ComplexTransform
value
- Description of Parameterpublic void clear()
clear
in interface ComplexTransform
public boolean hasAnyChanges()
hasAnyChanges
in interface ComplexTransform
public void apply(java.io.File inputFile, java.io.File outputFile)
apply
in interface ComplexTransform
inputFile
- Description of ParameteroutputFile
- Description of Parameterpublic void createFile(java.io.File file)
createFile
in interface ComplexTransform
file
- Description of Parameterpublic void removeFile(java.io.File file)
removeFile
in interface ComplexTransform
file
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |