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