Public Member Functions | Protected Attributes

antlr.preprocessor.GrammarFile Class Reference

List of all members.

Public Member Functions

 GrammarFile (antlr.Tool tool, String f)
void addGrammar (Grammar g)
void generateExpandedFile () throws IOException
IndexedVector getGrammars ()
String getName ()
String nameForExpandedGrammarFile (String f)
void setExpanded (boolean exp)
void addHeaderAction (String a)
void setOptions (IndexedVector o)
String toString ()

Protected Attributes

String fileName
String headerAction = ""
IndexedVector options
IndexedVector grammars
boolean expanded = false
antlr.Tool tool

Detailed Description

Stores header action, grammar preamble, file options, and list of grammars in the file


Constructor & Destructor Documentation

antlr.preprocessor.GrammarFile.GrammarFile ( antlr.Tool  tool,
String  f 
)

Member Function Documentation

void antlr.preprocessor.GrammarFile.addGrammar ( Grammar  g  ) 
void antlr.preprocessor.GrammarFile.addHeaderAction ( String  a  ) 
void antlr.preprocessor.GrammarFile.generateExpandedFile (  )  throws IOException
IndexedVector antlr.preprocessor.GrammarFile.getGrammars (  ) 
String antlr.preprocessor.GrammarFile.getName (  ) 
String antlr.preprocessor.GrammarFile.nameForExpandedGrammarFile ( String  f  ) 
void antlr.preprocessor.GrammarFile.setExpanded ( boolean  exp  ) 
void antlr.preprocessor.GrammarFile.setOptions ( IndexedVector  o  ) 
String antlr.preprocessor.GrammarFile.toString (  ) 

Member Data Documentation

boolean antlr.preprocessor.GrammarFile.expanded = false [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties