org.prorefactor.refactor.bubbledecs
Class BubbleDecsRefactor

java.lang.Object
  extended by org.prorefactor.refactor.bubbledecs.BubbleDecsRefactor

public class BubbleDecsRefactor
extends java.lang.Object

Find declarations which need to be "bubbled" to the top of the compile unit.


Field Summary
 java.util.ArrayList messages
           
protected static int POSITION_OK
           
protected  Rollback rollback
           
 
Constructor Summary
BubbleDecsRefactor(Rollback rollback)
          You may create the object with an existing Rollback, or else pass in null to have the constructor create a new rollback.
 
Method Summary
protected  org.prorefactor.refactor.bubbledecs.BubbleDecsInclude fetchBubbleDecsInclude(int index)
           
 java.lang.String run(int topNode)
          Run this refactoring.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

public java.util.ArrayList messages

POSITION_OK

protected static final int POSITION_OK
See Also:
Constant Field Values

rollback

protected Rollback rollback
Constructor Detail

BubbleDecsRefactor

public BubbleDecsRefactor(Rollback rollback)
You may create the object with an existing Rollback, or else pass in null to have the constructor create a new rollback.

Method Detail

fetchBubbleDecsInclude

protected org.prorefactor.refactor.bubbledecs.BubbleDecsInclude fetchBubbleDecsInclude(int index)
                                                                                throws java.io.IOException,
                                                                                       RefactorException
Throws:
java.io.IOException
RefactorException

run

public java.lang.String run(int topNode)
                     throws java.io.IOException,
                            RefactorException
Run this refactoring. IMPORTANT: RefactorSession.enableParserListing() had to be in effect at the time that the call to parse() was made.

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
Throws:
java.io.IOException
RefactorException
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.