|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.xpand2.output.JavaBeautifier
public class JavaBeautifier
Formats generated Java code using the Eclipse code formatter.
| Constructor Summary | |
|---|---|
JavaBeautifier()
|
|
| Method Summary | |
|---|---|
void |
afterClose(FileHandle impl)
Called after the file has been written. |
void |
beforeWriteAndClose(FileHandle info)
Formats the file using Eclipse code formatter. |
String |
getConfigFile()
|
protected InputStream |
openStream(String filename)
Searches for the given filename as a resource and returns a stream on it. |
void |
setConfigFile(String configFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaBeautifier()
| Method Detail |
|---|
public void beforeWriteAndClose(FileHandle info)
beforeWriteAndClose in interface PostProcessorinfo - A handle to the file that will be written
protected InputStream openStream(String filename)
throws IOException
filename - The name of the file to be searched in the resources.
IOExceptionpublic String getConfigFile()
public void setConfigFile(String configFile)
configFile - configuration file for the formatterpublic void afterClose(FileHandle impl)
afterClose in interface PostProcessorimpl - A handle to the file that has been written
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||