public final class AutomataOutput extends Object
Automata instance. Each
entry is realized
by an entry point with the corresponding return type.output(Writer, String, Config, Automata)| Modifier and Type | Method and Description |
|---|---|
static SourceMapping |
output(Writer writer,
String className,
Config config,
Automata aut)
Generates the code from the automata
aut in
a Java class with name className, exported
using the given writer and parameterized
by the configuration config. |
static SourceMapping |
outputDefault(Writer writer,
String className,
Automata aut)
Same as
output(Writer, String, Config, Automata)
but the the default configuration. |
public static SourceMapping output(Writer writer, String className, Config config, Automata aut) throws IOException
aut in
a Java class with name className, exported
using the given writer and parameterized
by the configuration config.
Returns the source mappings computed when emitting
the code. Positions in generated code are computed
assuming that writer is fresh, unless a
CountingWriter is passed in which case its
current character count is taken into account.
writer - className - config - aut - IOExceptionpublic static SourceMapping outputDefault(Writer writer, String className, Automata aut) throws IOException
output(Writer, String, Config, Automata)
but the the default configuration.writer - className - aut - IOException