org.prorefactor.refactor.appendprogram
Class AppendProgram

java.lang.Object
  extended by org.prorefactor.refactor.appendprogram.AppendProgram

public class AppendProgram
extends java.lang.Object

The "Append Program" Refactoring. Appends "second.p" to the end of "first.p", and deals with removing duplicate includes, defines, etc. Should be called after "Bubble Declarations" and "Wrap Procedure Block" refactorings have been done to both the first and second files. This refactor spawns a BubbleDecsRefactor once complete - see this object's "bubbler" member.


Field Summary
 BubbleDecsRefactor bubbler
           
 java.util.ArrayList messageList
           
 
Constructor Summary
AppendProgram(Rollback rollback)
           
 
Method Summary
 void appendFile(java.io.File first, java.io.File second)
           
 java.lang.String run(java.io.File first, java.io.File second)
          Run this refactoring.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageList

public java.util.ArrayList messageList

bubbler

public BubbleDecsRefactor bubbler
Constructor Detail

AppendProgram

public AppendProgram(Rollback rollback)
Method Detail

appendFile

public void appendFile(java.io.File first,
                       java.io.File second)
                throws java.io.IOException
Throws:
java.io.IOException

run

public java.lang.String run(java.io.File first,
                            java.io.File second)
                     throws java.io.IOException,
                            RefactorException
Run this refactoring. IMPORTANT: After running, you should examine this object's "messageList" member, as well as examine "bubbler" for any extra details from that refactoring.

Parameters:
first - The file append "second" to.
second - The file to append to "first".
Returns:
The return (error) value from BubbleDecsRefactor, if any.
Throws:
java.io.IOException
RefactorException


Copyright © 2008 Joanju Software. All Rights Reserved.