public class ValidatingGrammarGenerator extends Object
Constructor and Description |
---|
ValidatingGrammarGenerator() |
Modifier and Type | Method and Description |
---|---|
Symbol |
generate(Schema schema)
Returns the non-terminal that is the start symbol
for the grammar for the given schema sc.
|
Symbol |
generate(Schema sc,
Map<org.apache.avro.io.parsing.ValidatingGrammarGenerator.LitS,Symbol> seen)
Returns the non-terminal that is the start symbol
for the grammar for the given schema sc.
|
public Symbol generate(Schema schema)
public Symbol generate(Schema sc, Map<org.apache.avro.io.parsing.ValidatingGrammarGenerator.LitS,Symbol> seen)
sc
- The schema for which the start symbol is requiredseen
- A map of schema to symbol mapping done so far.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.