public class SerializedGrammar extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COOKIE |
static int |
FORMAT_VERSION |
String |
name |
List |
rules |
char |
type |
Constructor and Description |
---|
SerializedGrammar(String filename) |
Modifier and Type | Method and Description |
---|---|
protected List |
readAlt(DataInputStream in) |
protected org.antlr.runtime.SerializedGrammar.Block |
readBlock(DataInputStream in) |
protected void |
readFile(DataInputStream in) |
protected org.antlr.runtime.SerializedGrammar.Rule |
readRule(DataInputStream in) |
protected List |
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 rules
public SerializedGrammar(String filename) throws IOException
IOException
protected void readFile(DataInputStream in) throws IOException
IOException
protected List readRules(DataInputStream in, int numRules) throws IOException
IOException
protected org.antlr.runtime.SerializedGrammar.Rule readRule(DataInputStream in) throws IOException
IOException
protected org.antlr.runtime.SerializedGrammar.Block readBlock(DataInputStream in) throws IOException
IOException
protected List readAlt(DataInputStream in) throws IOException
IOException
protected String readString(DataInputStream in) throws IOException
IOException
Copyright © 2020. All rights reserved.