Package de.haumacher.msgbuf.generator
Class Generator
- java.lang.Object
-
- de.haumacher.msgbuf.generator.Generator
-
public class Generator extends Object
Main entry point to themsgbufgenerator.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOUTPUT_DIR_ARGArgument giving the output directory.
-
Constructor Summary
Constructors Constructor Description Generator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiderror(String message)protected voiderror(String message, IOException ex)voidgenerate(GeneratorPlugin plugin)DefinitionFileload(DefinitionFile file)DefinitionFileload(File file)DefinitionFileload(InputStream in)DefinitionFileload(String fileName)static voidmain(String... args)Main entry point invoked from the command line.static DefinitionFileparse(InputStream in)voidsetOut(File out)
-
-
-
Field Detail
-
OUTPUT_DIR_ARG
public static final String OUTPUT_DIR_ARG
Argument giving the output directory.- See Also:
- Constant Field Values
-
-
Method Detail
-
setOut
public void setOut(File out)
-
load
public DefinitionFile load(String fileName) throws IOException, ParseException
- Throws:
IOExceptionParseException
-
load
public DefinitionFile load(File file) throws ParseException, IOException, FileNotFoundException
-
load
public DefinitionFile load(InputStream in) throws ParseException
- Throws:
ParseException
-
parse
public static DefinitionFile parse(InputStream in) throws ParseException
- Throws:
ParseException
-
load
public DefinitionFile load(DefinitionFile file)
-
generate
public void generate(GeneratorPlugin plugin)
-
error
protected void error(String message)
-
error
protected void error(String message, IOException ex)
-
main
public static void main(String... args) throws ParseException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
Main entry point invoked from the command line.
-
-