Package org.antlr.runtime
Class SerializedGrammar
java.lang.Object
org.antlr.runtime.SerializedGrammar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intList<? extends SerializedGrammar.Rule> char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<SerializedGrammar.Node> protected SerializedGrammar.Blockprotected voidprotected SerializedGrammar.Ruleprotected List<? extends SerializedGrammar.Rule> readRules(DataInputStream in, int numRules) protected StringtoString()
-
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
-