antlr.preprocessor
Class GrammarFile
java.lang.Object
|
+--antlr.preprocessor.GrammarFile
- public class GrammarFile
- extends java.lang.Object
Stores header action, grammar preamble, file options, and
list of grammars in the file
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fileName
protected java.lang.String fileName
headerAction
protected java.lang.String headerAction
options
protected IndexedVector options
grammars
protected IndexedVector grammars
expanded
protected boolean expanded
GrammarFile
public GrammarFile(java.lang.String f)
addGrammar
public void addGrammar(Grammar g)
generateExpandedFile
public void generateExpandedFile()
throws java.io.IOException
java.io.IOException
getGrammars
public IndexedVector getGrammars()
getName
public java.lang.String getName()
nameForExpandedGrammarFile
public java.lang.String nameForExpandedGrammarFile(java.lang.String f)
setExpanded
public void setExpanded(boolean exp)
addHeaderAction
public void addHeaderAction(java.lang.String a)
setOptions
public void setOptions(IndexedVector o)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object