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
IOExceptionprotected void readFile(DataInputStream in) throws IOException
IOExceptionprotected List readRules(DataInputStream in, int numRules) throws IOException
IOExceptionprotected org.antlr.runtime.SerializedGrammar.Rule readRule(DataInputStream in) throws IOException
IOExceptionprotected org.antlr.runtime.SerializedGrammar.Block readBlock(DataInputStream in) throws IOException
IOExceptionprotected List readAlt(DataInputStream in) throws IOException
IOExceptionprotected String readString(DataInputStream in) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.