Top Inners Fields Constructors Methods
org.antlr.runtime

public Class SerializedGrammar

extends Object
Class Inheritance
Imports
java.io.IOException, .FileInputStream, .BufferedInputStream, .DataInputStream, java.util.List, .ArrayList

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
protected abstract class
protected class
protected class
protected class

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
public String
public List<? extends SerializedGrammar.Rule>
public char

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected List<SerializedGrammar.Node>
protected SerializedGrammar.Block
protected void
protected SerializedGrammar.Rule
protected List<? extends SerializedGrammar.Rule>
readRules(DataInputStream in, int numRules)

protected String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

FORMAT_VERSIONback to summary
public static final int FORMAT_VERSION
nameback to summary
public String name
rulesback to summary
public List<? extends SerializedGrammar.Rule> rules
typeback to summary
public char type

Constructor Detail

SerializedGrammarback to summary
public SerializedGrammar(String filename) throws IOException

Method Detail

readAltback to summary
protected List<SerializedGrammar.Node> readAlt(DataInputStream in) throws IOException
readBlockback to summary
protected SerializedGrammar.Block readBlock(DataInputStream in) throws IOException
readFileback to summary
protected void readFile(DataInputStream in) throws IOException
readRuleback to summary
protected SerializedGrammar.Rule readRule(DataInputStream in) throws IOException
readRulesback to summary
protected List<? extends SerializedGrammar.Rule> readRules(DataInputStream in, int numRules) throws IOException
readStringback to summary
protected String readString(DataInputStream in) throws IOException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.antlr.runtime back to summary

protected Class SerializedGrammar.Block

extends Node
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv List<E>[]

Constructor Summary

AccessConstructor and Description
public
Block(List<E>[] alts)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Implements abstract org.antlr.runtime.SerializedGrammar.Node.toString.

Returns a string representation of the object.

Field Detail

altsback to summary
pack-priv List<E>[] alts

Constructor Detail

Blockback to summary
public Block(List<E>[] alts)

Method Detail

toStringback to summary
public String toString()

Implements abstract org.antlr.runtime.SerializedGrammar.Node.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.antlr.runtime back to summary

protected abstract Class SerializedGrammar.Node

extends Object
Class Inheritance
Known Direct Subclasses
org.antlr.runtime.SerializedGrammar.Block, org.antlr.runtime.SerializedGrammar.TokenRef, org.antlr.runtime.SerializedGrammar.RuleRef

Constructor Summary

AccessConstructor and Description
protected
Node()

Method Summary

Modifier and TypeMethod and Description
public abstract String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

Nodeback to summary
protected Node()

Method Detail

toStringback to summary
public abstract String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.antlr.runtime back to summary

protected Class SerializedGrammar.Rule

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv SerializedGrammar.Block
pack-priv String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

blockback to summary
pack-priv SerializedGrammar.Block block
nameback to summary
pack-priv String name

Constructor Detail

Ruleback to summary
public Rule(String name, SerializedGrammar.Block block)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.antlr.runtime back to summary

protected Class SerializedGrammar.RuleRef

extends Node
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int

Constructor Summary

AccessConstructor and Description
public
RuleRef(int ruleIndex)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Implements abstract org.antlr.runtime.SerializedGrammar.Node.toString.

Returns a string representation of the object.

Field Detail

ruleIndexback to summary
pack-priv int ruleIndex

Constructor Detail

RuleRefback to summary
public RuleRef(int ruleIndex)

Method Detail

toStringback to summary
public String toString()

Implements abstract org.antlr.runtime.SerializedGrammar.Node.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.antlr.runtime back to summary

protected Class SerializedGrammar.TokenRef

extends Node
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int

Constructor Summary

AccessConstructor and Description
public
TokenRef(int ttype)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Implements abstract org.antlr.runtime.SerializedGrammar.Node.toString.

Returns a string representation of the object.

Field Detail

ttypeback to summary
pack-priv int ttype

Constructor Detail

TokenRefback to summary
public TokenRef(int ttype)

Method Detail

toStringback to summary
public String toString()

Implements abstract org.antlr.runtime.SerializedGrammar.Node.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override