public class JiowaCodeGeneratorEngine
extends java.lang.Object
The usage of this class can be found on page 62 in the slideshare tutorial!
Copyright (C) 2012-2015 JIOWA Business Solutions GmbH, Bettinastr. 30, 60325 Frankfurt am Main, Germany
Homepage: www.jiowa.de
All rights reserved.
Download: www.jiowa.de/download.html
License: www.jiowa.de/license.html
Modifier and Type | Field and Description |
---|---|
protected Generator[] |
generators
the list of generators to be started
|
Constructor and Description |
---|
JiowaCodeGeneratorEngine(java.util.Collection<Generator> generators)
Constructor with list of generators to be started.
|
JiowaCodeGeneratorEngine(Generator... generators)
Constructor with list of generators to be started.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorsAndWarningMessages()
Returns a string of all error and warning messages of the last generator run.
|
boolean |
hasErrors()
Returns true if the last code generation run had errors, and false otherwise.
|
boolean |
hasWarnings()
Returns true if the last code generation run produced warnings, and false otherwise.
|
protected void |
printErrorsAndWarnings()
Prints errors and warnings to the console.
|
protected void |
printErrorsAndWarnings(java.lang.Long startTime,
java.lang.Long endTime)
Prints errors and warnings and the total time for the computation.
|
void |
start()
This starts the generation process by calling the generator()-method of
each registered
Generator . |
protected Generator[] generators
public JiowaCodeGeneratorEngine(Generator... generators)
generators
- list of Generator
spublic void start()
Generator
.public boolean hasErrors()
public boolean hasWarnings()
public java.lang.String getErrorsAndWarningMessages()
protected void printErrorsAndWarnings()
protected void printErrorsAndWarnings(java.lang.Long startTime, java.lang.Long endTime)
startTime
- in millisecondsendTime
- in milliseconds