org.prorefactor.refactor.action
Class QualifyFieldsRefactor

java.lang.Object
  extended by org.prorefactor.refactor.action.QualifyFieldsRefactor

public class QualifyFieldsRefactor
extends java.lang.Object

Add the table name to unqualified fields.


Nested Class Summary
protected  class QualifyFieldsRefactor.UnqualNode
           
 
Field Summary
 ICallback callback
           
protected  java.util.ArrayList nodeList
           
protected  int sourceFileIndex
           
protected  boolean useCaps
           
 
Constructor Summary
QualifyFieldsRefactor()
           
 
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
 

Field Detail

useCaps

protected boolean useCaps

sourceFileIndex

protected int sourceFileIndex

nodeList

protected java.util.ArrayList nodeList

callback

public ICallback callback
Constructor Detail

QualifyFieldsRefactor

public QualifyFieldsRefactor()
Method Detail

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.