Package org.antlr.runtime
Class SerializedGrammar
java.lang.Object
org.antlr.runtime.SerializedGrammar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected class
protected class
protected class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final int
List
<? extends SerializedGrammar.Rule> char
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<SerializedGrammar.Node> protected SerializedGrammar.Block
protected void
protected SerializedGrammar.Rule
protected List
<? extends SerializedGrammar.Rule> readRules
(DataInputStream in, int numRules) protected String
toString()
-
Field Details
-
COOKIE
- See Also:
-
FORMAT_VERSION
public static final int FORMAT_VERSION- See Also:
-
name
-
type
public char type -
rules
-
-
Constructor Details
-
SerializedGrammar
- Throws:
IOException
-
-
Method Details
-
readFile
- Throws:
IOException
-
readRules
protected List<? extends SerializedGrammar.Rule> readRules(DataInputStream in, int numRules) throws IOException - Throws:
IOException
-
readRule
- Throws:
IOException
-
readBlock
- Throws:
IOException
-
readAlt
- Throws:
IOException
-
readString
- Throws:
IOException
-
toString
-