org.prorefactor.refactor.noundo
Class NoundoWrap

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

public class NoundoWrap
extends java.lang.Object

Wraps the various NO-UNDO refactor pieces into a single function call.


Field Summary
 boolean overwrite
          Overwrite files that already exist? Default is "true".
 
Constructor Summary
NoundoWrap(java.lang.String outputDir)
          Constructor requires the name of the output directory.
 
Method Summary
 java.lang.String run(int topHandle)
          Run the NO-UNDO refactor.
 java.lang.String run(java.lang.String filename)
          Run the NO-UNDO refactor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

overwrite

public boolean overwrite
Overwrite files that already exist? Default is "true".

Constructor Detail

NoundoWrap

public NoundoWrap(java.lang.String outputDir)
Constructor requires the name of the output directory.

Method Detail

run

public java.lang.String run(java.lang.String filename)
Run the NO-UNDO refactor.

Parameters:
filename - The compile unit to parse and refactor all parts of.
Returns:
Empty string on success, otherwise an error message.

run

public java.lang.String run(int topHandle)
Run the NO-UNDO refactor.

Parameters:
topnode - The handle to the syntax tree top node.
Returns:
Empty string on success, otherwise an error message.


Copyright © 2008 Joanju Software. All Rights Reserved.