org.prorefactor.refactor.action
Class QualifyFieldsRefactor
java.lang.Object
org.prorefactor.refactor.action.QualifyFieldsRefactor
public class QualifyFieldsRefactor
- extends java.lang.Object
Add the table name to unqualified fields.
Method Summary |
java.lang.String |
generateNewSource()
|
int |
run(java.io.File sourceFile,
java.io.File compileFile)
Run this refactor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useCaps
protected boolean useCaps
sourceFileIndex
protected int sourceFileIndex
nodeList
protected java.util.ArrayList nodeList
callback
public ICallback callback
QualifyFieldsRefactor
public QualifyFieldsRefactor()
generateNewSource
public java.lang.String generateNewSource()
throws java.io.IOException
- Throws:
java.io.IOException
run
public int run(java.io.File sourceFile,
java.io.File compileFile)
throws RefactorException,
java.io.IOException,
PRCException
- Run this refactor.
- Parameters:
sourceFile
- The source file to be refactored.compileFile
- The source file for the compile unit for building
an AST. Is different than the sourceFile if the sourceFile is not
compilable.
- Returns:
- The number of unqualified field nodes.
- Throws:
RefactorException
java.io.IOException
PRCException
Copyright © 2008 Joanju Software. All Rights Reserved.