|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acm.seguin.ide.jedit.JEditComplexTransform
public class JEditComplexTransform
Base class for a program that reads in an abstract syntax tree, transforms the code, and rewrites the file to disk.
| Constructor Summary | |
|---|---|
JEditComplexTransform()
Constructor for the JEditComplexTransform 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)
Sets the undoAction attribute of the JEditComplexTransform object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEditComplexTransform()
| Method Detail |
|---|
public void setUndoAction(UndoAction init)
setUndoAction in interface ComplexTransforminit - The new undoAction valuepublic void add(TransformAST value)
add in interface ComplexTransformvalue - Description of Parameterpublic void clear()
clear in interface ComplexTransformpublic boolean hasAnyChanges()
hasAnyChanges in interface ComplexTransform
public void apply(java.io.File inputFile,
java.io.File outputFile)
apply in interface ComplexTransforminputFile - Description of ParameteroutputFile - Description of Parameterpublic void createFile(java.io.File file)
createFile in interface ComplexTransformfile - Description of Parameterpublic void removeFile(java.io.File file)
removeFile in interface ComplexTransformfile - Description of Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||