Public Member Functions | Protected Attributes

antlr.preprocessor.Grammar Class Reference

List of all members.

Public Member Functions

 Grammar (antlr.Tool tool, String name, String superGrammar, IndexedVector rules)
void addOption (Option o)
void addRule (Rule r)
void expandInPlace ()
String getFileName ()
String getName ()
IndexedVector getOptions ()
IndexedVector getRules ()
Grammar getSuperGrammar ()
String getSuperGrammarName ()
String getType ()
void inherit (Option o, Grammar superG)
void inherit (Rule r, Grammar superG)
void inherit (String memberAction, Grammar superG)
boolean isPredefined ()
void setFileName (String f)
void setHierarchy (Hierarchy hier)
void setMemberAction (String a)
void setOptions (IndexedVector options)
void setPreambleAction (String a)
void setPredefined (boolean b)
void setTokenSection (String tk)
void setType (String t)
String toString ()

Protected Attributes

String name
String fileName
String superGrammar
String type
IndexedVector rules
IndexedVector options
String tokenSection
String preambleAction
String memberAction
Hierarchy hier
boolean predefined = false
boolean alreadyExpanded = false
boolean specifiedVocabulary = false
String superClass = null
String importVocab = null
String exportVocab = null
antlr.Tool antlrTool

Constructor & Destructor Documentation

antlr.preprocessor.Grammar.Grammar ( antlr.Tool  tool,
String  name,
String  superGrammar,
IndexedVector  rules 
)

Member Function Documentation

void antlr.preprocessor.Grammar.addOption ( Option  o  ) 
void antlr.preprocessor.Grammar.addRule ( Rule  r  ) 
void antlr.preprocessor.Grammar.expandInPlace (  ) 
String antlr.preprocessor.Grammar.getFileName (  ) 
String antlr.preprocessor.Grammar.getName (  ) 
IndexedVector antlr.preprocessor.Grammar.getOptions (  ) 
IndexedVector antlr.preprocessor.Grammar.getRules (  ) 
Grammar antlr.preprocessor.Grammar.getSuperGrammar (  ) 
String antlr.preprocessor.Grammar.getSuperGrammarName (  ) 
String antlr.preprocessor.Grammar.getType (  ) 
void antlr.preprocessor.Grammar.inherit ( Option  o,
Grammar  superG 
)
void antlr.preprocessor.Grammar.inherit ( Rule  r,
Grammar  superG 
)
void antlr.preprocessor.Grammar.inherit ( String  memberAction,
Grammar  superG 
)
boolean antlr.preprocessor.Grammar.isPredefined (  ) 
void antlr.preprocessor.Grammar.setFileName ( String  f  ) 
void antlr.preprocessor.Grammar.setHierarchy ( Hierarchy  hier  ) 
void antlr.preprocessor.Grammar.setMemberAction ( String  a  ) 
void antlr.preprocessor.Grammar.setOptions ( IndexedVector  options  ) 
void antlr.preprocessor.Grammar.setPreambleAction ( String  a  ) 
void antlr.preprocessor.Grammar.setPredefined ( boolean  b  ) 
void antlr.preprocessor.Grammar.setTokenSection ( String  tk  ) 
void antlr.preprocessor.Grammar.setType ( String  t  ) 
String antlr.preprocessor.Grammar.toString (  ) 

Member Data Documentation

boolean antlr.preprocessor.Grammar.alreadyExpanded = false [protected]
String antlr.preprocessor.Grammar.exportVocab = null [protected]
String antlr.preprocessor.Grammar.importVocab = null [protected]
String antlr.preprocessor.Grammar.name [protected]
boolean antlr.preprocessor.Grammar.predefined = false [protected]
String antlr.preprocessor.Grammar.superClass = null [protected]

if not derived from another grammar, might still specify a non-ANTLR class to derive from like this "class T extends Parser(MyParserClass);"

Referenced by antlr.preprocessor.Preprocessor.class_def(), and antlr.preprocessor.Grammar.toString().

String antlr.preprocessor.Grammar.type [protected]

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