org.prorefactor.refactor.noundo
Class NoundoRefactor

java.lang.Object
  extended by org.prorefactor.refactor.noundo.NoundoRefactor

public class NoundoRefactor
extends java.lang.Object

Given a DEFINE statement that is missing NO-UNDO, we add the NO-UNDO just before the statement close (period or colon).


Field Summary
 java.lang.String nuText
          "NO-UNDO" or "no-undo", based on ProparseProjectSettings.capKeyword.
 
Constructor Summary
NoundoRefactor()
          Constructor - no args.
 
Method Summary
 int run(NoundoTarget inTarget, int inScanNum)
          Run this refactor for a given handle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nuText

public java.lang.String nuText
"NO-UNDO" or "no-undo", based on ProparseProjectSettings.capKeyword.

Constructor Detail

NoundoRefactor

public NoundoRefactor()
Constructor - no args.

Method Detail

run

public int run(NoundoTarget inTarget,
               int inScanNum)
Run this refactor for a given handle.

Parameters:
target - The NoundoTarget object which contains details about the node which needs refactoring.
Returns:
1 on success, or a negative number on fail: 3: Temp or work table target - not processed. 1: success. -1: Failed to synchronize, possibly due to preprocessing or escape sequences in source. -2: Something weird happened. Review the DEFINE statement manually.


Copyright © 2008 Joanju Software. All Rights Reserved.