org.antlr.runtime
Class SerializedGrammar

java.lang.Object
  extended by org.antlr.runtime.SerializedGrammar

public class SerializedGrammar
extends Object


Field Summary
static String COOKIE
           
static int FORMAT_VERSION
           
 String name
           
 List rules
           
 char type
           
 
Constructor Summary
SerializedGrammar(String filename)
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COOKIE

public static final String COOKIE
See Also:
Constant Field Values

FORMAT_VERSION

public static final int FORMAT_VERSION
See Also:
Constant Field Values

name

public String name

type

public char type

rules

public List rules
Constructor Detail

SerializedGrammar

public SerializedGrammar(String filename)
                  throws IOException
Throws:
IOException
Method Detail

readFile

protected void readFile(DataInputStream in)
                 throws IOException
Throws:
IOException

readRules

protected List readRules(DataInputStream in,
                         int numRules)
                  throws IOException
Throws:
IOException

readRule

protected org.antlr.runtime.SerializedGrammar.Rule readRule(DataInputStream in)
                                                     throws IOException
Throws:
IOException

readBlock

protected org.antlr.runtime.SerializedGrammar.Block readBlock(DataInputStream in)
                                                       throws IOException
Throws:
IOException

readAlt

protected List readAlt(DataInputStream in)
                throws IOException
Throws:
IOException

readString

protected String readString(DataInputStream in)
                     throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.