org.prorefactor.refactor.tfnames
Class NamesLint

java.lang.Object
  extended by org.prorefactor.refactor.tfnames.NamesLint
All Implemented Interfaces:
ILint

public class NamesLint
extends java.lang.Object
implements ILint

Find all table and table.field names, find those which need to be refactored. For each node found which needs fixing, create a Target, and store the "corrected" node text in that Target. Can be called/implemented via org.prorefactor.refactor.TempDirWrap.


Field Summary
 java.util.TreeSet targetSet
           
 
Constructor Summary
NamesLint(TFNamesRefactor namesSettings)
           
 
Method Summary
protected  void examineNode(JPNode node)
           
 java.util.TreeSet getTargetSet()
          Get the lint's RefactorTarget set
 java.lang.String run(int topNode)
          Run this lint routine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetSet

public java.util.TreeSet targetSet
Constructor Detail

NamesLint

public NamesLint(TFNamesRefactor namesSettings)
Method Detail

examineNode

protected void examineNode(JPNode node)

getTargetSet

public java.util.TreeSet getTargetSet()
Description copied from interface: ILint
Get the lint's RefactorTarget set

Specified by:
getTargetSet in interface ILint

run

public java.lang.String run(int topNode)
Run this lint routine.

Specified by:
run in interface ILint
Parameters:
topNode - The topmost node in the AST to start the lint from.
Returns:
A string representing any error message, null or empty if no error
See Also:
The client becomes the "owner" of the handles referred to in the NamesTarget records, and is responsible for releasing those when done.


Copyright © 2008 Joanju Software. All Rights Reserved.