|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.wurbelizer.AbstractWurbiler
org.wurbelizer.DefaultWurbiler
public class DefaultWurbiler
Default implementation of a wurblet compiler.
This wurbiler can be used as a console application (provided for testing purposes only)
or from within ant, as implemented in AntWurbiler.
It takes the wurbelizable-source as its first argument and creates a java output file together with the serialized fixed source file. Example:
java org.wurbelizer.DefaultWurbiler Test.wrbl(the extension
.wrbl may be omitted)
Creates:
Test.java, the wurblet source ready to be compiled by javac, and
Test.ser, the fixed source.
| Constructor Summary | |
|---|---|
DefaultWurbiler(File wrblFile,
File outputDir)
Creates an instance of a wurbiler with default options for wrblFile to be compiled to outputDir. |
|
| Method Summary | |
|---|---|
int |
compile()
Compiles the wurbelizable. |
static void |
main(String[] args)
Invokes the wurbiler from the command line. |
| Methods inherited from class org.wurbelizer.AbstractWurbiler |
|---|
addInterface, getArgs, getImports, getIndent, getInterfaces, getLogger, getOutName, getPackageName, getParentClass, getReader, getSourceList, getWriter, isAutoIndent, logError, logWarning, setArgs, setAutoIndent, setImports, setIndent, setLogger, setOutName, setOutName, setPackageName, setParentClass, setSourceList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultWurbiler(File wrblFile,
File outputDir)
throws FileNotFoundException
wrblFile - the input wurbelizer fileoutputDir - the output directory getting the .java and .ser-files.
FileNotFoundException - if file not found| Method Detail |
|---|
public int compile()
throws IOException
compile in interface Wurbilercompile in class AbstractWurbilerIOException - if compilation failed due to i/o errorpublic static void main(String[] args)
args - the command line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||