org.prorefactor.refactor.substitute
Class SubstituteLint

java.lang.Object
  extended by org.prorefactor.refactor.substitute.SubstituteLint

public class SubstituteLint
extends java.lang.Object

Find PLUS nodes which join two or more QSTRING nodes with expressions. Those should be using SUBSTITUTE instead of concatenation, in order for easier translation.


Field Summary
 java.util.TreeSet targetSet
           
 
Constructor Summary
SubstituteLint()
           
 
Method Summary
 java.util.TreeSet 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

SubstituteLint

public SubstituteLint()
Method Detail

run

public java.util.TreeSet run(int topNode)
Run this lint routine.

Parameters:
topNode - The topmost node in the AST to start the lint from.
Returns:
A TreeSet of unique SubstituteTarget records.
See Also:
The client becomes the "owner" of the handles referred to in the SubstituteTarget records, and is responsible for releasing those when done.


Copyright © 2008 Joanju Software. All Rights Reserved.