| java.lang.Object org.acm.seguin.pretty.PrettyPrintFile
All known Subclasses: org.acm.seguin.pretty.TestPrettyPrintFile, org.acm.seguin.pretty.PrettyPrintString, org.acm.seguin.ide.jedit.JEditPrettyPrinter,
PrettyPrintFile | public class PrettyPrintFile (Code) | | Holds a refactoring. Default version just pretty prints the file.
author: Chris Seguin author: Mike Atkinson version: $Id: PrettyPrintFile.java,v 1.12 2003/11/18 18:46:14 mikeatkinson Exp $ |
PrettyPrintFile | public PrettyPrintFile()(Code) | | Refactors java code.
|
apply | public void apply(File inputFile)(Code) | | Apply the refactoring
Parameters: inputFile - the input file |
apply | public void apply(File inputFile, SimpleNode root)(Code) | | Apply the refactoring
Parameters: inputFile - the input file Parameters: root - Description of Parameter |
getParserFactory | public ParserFactory getParserFactory()(Code) | | Return the factory that gets the abstract syntax trees
the parser factory |
getPrintData | protected PrintData getPrintData(File input)(Code) | | Return the appropriate print data
Parameters: input - Description of Parameter the print data |
getWriter | protected Writer getWriter(File file)(Code) | | Create the output stream
Parameters: file - the name of the file the output stream |
isApplicable | public boolean isApplicable(File inputFile)(Code) | | Returns true if this refactoring is applicable
Parameters: inputFile - the input file true if this refactoring is applicable |
postApply | protected void postApply(File inputFile, SimpleNode root)(Code) | | Apply the refactoring
Parameters: inputFile - the input file Parameters: root - Description of Parameter |
setAsk | public void setAsk(boolean way)(Code) | | Sets whether we should ask the user
Parameters: way - the way to set the variable |
setParserFactory | public void setParserFactory(ParserFactory factory)(Code) | | Set the parser factory
Parameters: factory - Description of Parameter |
|
|