public class SerializedGrammar extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
SerializedGrammar.Block |
protected class |
SerializedGrammar.Node |
protected class |
SerializedGrammar.Rule |
protected class |
SerializedGrammar.RuleRef |
protected class |
SerializedGrammar.TokenRef |
Modifier and Type | Field and Description |
---|---|
static String |
COOKIE |
static int |
FORMAT_VERSION |
String |
name |
List<? extends SerializedGrammar.Rule> |
rules |
char |
type |
Constructor and Description |
---|
SerializedGrammar(String filename) |
Modifier and Type | Method and Description |
---|---|
protected List<SerializedGrammar.Node> |
readAlt(DataInputStream in) |
protected SerializedGrammar.Block |
readBlock(DataInputStream in) |
protected void |
readFile(DataInputStream in) |
protected SerializedGrammar.Rule |
readRule(DataInputStream in) |
protected List<? extends SerializedGrammar.Rule> |
readRules(DataInputStream in,
int numRules) |
protected String |
readString(DataInputStream in) |
String |
toString() |
public static final String COOKIE
public static final int FORMAT_VERSION
public String name
public char type
public List<? extends SerializedGrammar.Rule> rules
public SerializedGrammar(String filename) throws IOException
IOException
protected void readFile(DataInputStream in) throws IOException
IOException
protected List<? extends SerializedGrammar.Rule> readRules(DataInputStream in, int numRules) throws IOException
IOException
protected SerializedGrammar.Rule readRule(DataInputStream in) throws IOException
IOException
protected SerializedGrammar.Block readBlock(DataInputStream in) throws IOException
IOException
protected List<SerializedGrammar.Node> readAlt(DataInputStream in) throws IOException
IOException
protected String readString(DataInputStream in) throws IOException
IOException
Copyright © 1992–2015 ANTLR. All rights reserved.