|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
java.lang.String |
getConfigFile()
|
protected java.io.InputStream |
openStream(java.lang.String filename)
Searches for the given filename as a ressource and returns a stream on it. |
void |
setConfigFile(java.lang.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 PostProcessor
info
- A handle to the file that will be writtenprotected java.io.InputStream openStream(java.lang.String filename) throws java.io.IOException
filename
- The name of the file to be searched in the ressources.
java.io.IOException
public java.lang.String getConfigFile()
public void setConfigFile(java.lang.String configFile)
configFile
- configuration file for the formatterpublic void afterClose(FileHandle impl)
afterClose
in interface PostProcessor
impl
- A handle to the file that has been written
|
Copyright 2007 committers of openArchitectureWare and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |