|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acm.seguin.pretty.PrettyPrintFile
public class PrettyPrintFile
Holds a refactoring. Default version just pretty prints the file.
| Constructor Summary | |
|---|---|
PrettyPrintFile()
Refactors java code. |
|
| Method Summary | |
|---|---|
void |
apply(java.io.File inputFile)
Apply the refactoring |
void |
apply(java.io.File inputFile,
net.sourceforge.jrefactory.ast.SimpleNode root)
Apply the refactoring |
net.sourceforge.jrefactory.factory.ParserFactory |
getParserFactory()
Return the factory that gets the abstract syntax trees |
protected PrintData |
getPrintData(java.io.File input)
Return the appropriate print data |
protected java.io.Writer |
getWriter(java.io.File file)
Create the output stream |
boolean |
isApplicable(java.io.File inputFile)
Returns true if this refactoring is applicable |
protected void |
postApply(java.io.File inputFile,
net.sourceforge.jrefactory.ast.SimpleNode root)
Apply the refactoring |
void |
setAsk(boolean way)
Sets whether we should ask the user |
void |
setParserFactory(net.sourceforge.jrefactory.factory.ParserFactory factory)
Set the parser factory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrettyPrintFile()
| Method Detail |
|---|
public void setAsk(boolean way)
way - the way to set the variablepublic void setParserFactory(net.sourceforge.jrefactory.factory.ParserFactory factory)
factory - Description of Parameterpublic boolean isApplicable(java.io.File inputFile)
inputFile - the input file
public net.sourceforge.jrefactory.factory.ParserFactory getParserFactory()
public void apply(java.io.File inputFile)
inputFile - the input file
public void apply(java.io.File inputFile,
net.sourceforge.jrefactory.ast.SimpleNode root)
inputFile - the input fileroot - Description of Parameterprotected java.io.Writer getWriter(java.io.File file)
file - the name of the file
protected PrintData getPrintData(java.io.File input)
input - Description of Parameter
protected void postApply(java.io.File inputFile,
net.sourceforge.jrefactory.ast.SimpleNode root)
inputFile - the input fileroot - Description of Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||