public class Grammars2JSON extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
STATS_ON |
protected int |
statsCountStates |
protected int |
statsCountTransitions |
| Constructor and Description |
|---|
Grammars2JSON() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear() |
static void |
main(String[] args) |
protected void |
printBuiltInDatatype(Writer w,
int ind,
com.siemens.ct.exi.core.datatype.Datatype dt) |
protected void |
printBuiltInDatatype(Writer w,
int ind,
com.siemens.ct.exi.core.datatype.Datatype dt,
String typeID) |
protected void |
printGrammar(Writer w,
int ind,
com.siemens.ct.exi.core.grammars.grammar.SchemaInformedGrammar sir,
List<com.siemens.ct.exi.core.datatype.Datatype> listOfDatatypes) |
protected void |
printGrammarProduction(Writer w,
int ind,
com.siemens.ct.exi.core.grammars.grammar.SchemaInformedGrammar sir,
List<com.siemens.ct.exi.core.datatype.Datatype> listOfDatatypes) |
void |
toGrammarsJSON(com.siemens.ct.exi.core.grammars.SchemaInformedGrammars grammars,
OutputStream os) |
public static final boolean STATS_ON
protected int statsCountTransitions
protected int statsCountStates
protected void clear()
public void toGrammarsJSON(com.siemens.ct.exi.core.grammars.SchemaInformedGrammars grammars,
OutputStream os)
throws IOException,
com.siemens.ct.exi.core.exceptions.EXIException
IOExceptioncom.siemens.ct.exi.core.exceptions.EXIExceptionprotected void printGrammar(Writer w, int ind, com.siemens.ct.exi.core.grammars.grammar.SchemaInformedGrammar sir, List<com.siemens.ct.exi.core.datatype.Datatype> listOfDatatypes) throws IOException
IOExceptionprotected void printGrammarProduction(Writer w, int ind, com.siemens.ct.exi.core.grammars.grammar.SchemaInformedGrammar sir, List<com.siemens.ct.exi.core.datatype.Datatype> listOfDatatypes) throws IOException
IOExceptionprotected void printBuiltInDatatype(Writer w, int ind, com.siemens.ct.exi.core.datatype.Datatype dt) throws IOException
IOExceptionprotected void printBuiltInDatatype(Writer w, int ind, com.siemens.ct.exi.core.datatype.Datatype dt, String typeID) throws IOException
IOExceptionCopyright © 2018 Siemens AG. All rights reserved.