org.prorefactor.refactor.substitute
Class SubstituteWrap

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

public class SubstituteWrap
extends java.lang.Object

Wraps the SUBSTITUTE lint/refactor/review trio into a single subroutine.


Constructor Summary
SubstituteWrap()
           
 
Method Summary
static java.lang.String processTarget(SubstituteTarget target)
          Process a single SubstituteTarget
static java.lang.String run(int topNode)
          Run the SUBSTITUTE lint/refactor/review trio.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstituteWrap

public SubstituteWrap()
Method Detail

run

public static java.lang.String run(int topNode)
Run the SUBSTITUTE lint/refactor/review trio.

Parameters:
topNode - The integer handle to the top node in the AST to perform the refactoring on.
Returns:
Empty string on successful completion, "cancel" if the user chose the cancel button, or else the text of an error message.

processTarget

public static java.lang.String processTarget(SubstituteTarget target)
Process a single SubstituteTarget

Parameters:
target - The SubstituteTarget object to process
Returns:
Empty string on successful completion, "cancel" if the user chose the cancel button, or else the text of an error message.


Copyright © 2008 Joanju Software. All Rights Reserved.