org.acm.seguin.tools.stub
Class StubFile

java.lang.Object
  extended by org.acm.seguin.tools.stub.StubFile

public class StubFile
extends java.lang.Object

Holds a refactoring. Default version just pretty prints the file.

Version:
$Id: StubFile.java,v 1.7 2003/10/30 15:24:23 mikeatkinson Exp $
Author:
Chris Seguin, Mike Atkinson

Constructor Summary
StubFile(java.lang.String init, java.io.File file)
          Refactors java code.
 
Method Summary
 void apply(java.io.File inputFile)
          Create the stub for this file
 void apply(java.io.Reader inputStream, java.lang.String filename)
          Create the stub for this file
 void done()
          Close the file and note that we have completed this operation
protected  java.io.Writer getOutputStream(java.io.File file)
          Create the output stream
 net.sourceforge.jrefactory.factory.ParserFactory getParserFactory()
          Return the factory that gets the abstract syntax trees
 void setParserFactory(net.sourceforge.jrefactory.factory.ParserFactory factory)
          Set the parser factory
static void waitForCreation()
          Wait while this is being created
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubFile

public StubFile(java.lang.String init,
                java.io.File file)
Refactors java code.

Parameters:
init - Description of Parameter
file - Description of Parameter
Method Detail

setParserFactory

public void setParserFactory(net.sourceforge.jrefactory.factory.ParserFactory factory)
Set the parser factory

Parameters:
factory - Description of Parameter

getParserFactory

public net.sourceforge.jrefactory.factory.ParserFactory getParserFactory()
Return the factory that gets the abstract syntax trees

Returns:
the parser factory

apply

public void apply(java.io.File inputFile)
Create the stub for this file

Parameters:
inputFile - the input file

apply

public void apply(java.io.Reader inputStream,
                  java.lang.String filename)
Create the stub for this file

Parameters:
inputStream - the input stream
filename - the name of the file contained by the input stream

done

public void done()
Close the file and note that we have completed this operation


getOutputStream

protected java.io.Writer getOutputStream(java.io.File file)
Create the output stream

Parameters:
file - the name of the file
Returns:
the output stream

waitForCreation

public static void waitForCreation()
Wait while this is being created