Public Member Functions | Protected Attributes | Package Attributes

antlr.RuleBlock Class Reference

Inheritance diagram for antlr.RuleBlock:
antlr.AlternativeBlock antlr.AlternativeElement antlr.GrammarElement

List of all members.

Public Member Functions

 RuleBlock (Grammar g, String r)
 RuleBlock (Grammar g, String r, int line, boolean doAutoGen_)
void addExceptionSpec (ExceptionSpec ex)
ExceptionSpec findExceptionSpec (Token label)
ExceptionSpec findExceptionSpec (String label)
void generate ()
boolean getDefaultErrorHandler ()
RuleEndElement getEndElement ()
String getIgnoreRule ()
String getRuleName ()
boolean getTestLiterals ()
boolean isLexerAutoGenRule ()
Lookahead look (int k)
void prepareForAnalysis ()
void setDefaultErrorHandler (boolean value)
void setEndElement (RuleEndElement re)
void setOption (Token key, Token value)
String toString ()

Protected Attributes

String ruleName
String argAction = null
String throwsSpec = null
String returnAction = null
RuleEndElement endNode
boolean testLiterals = false
boolean[] lock
Lookahead cache []
boolean defaultErrorHandler = true
String ignoreRule = null

Package Attributes

Vector labeledElements
Hashtable exceptionSpecs

Detailed Description

A list of alternatives and info contained in the rule definition.


Constructor & Destructor Documentation

antlr.RuleBlock.RuleBlock ( Grammar  g,
String  r,
int  line,
boolean  doAutoGen_ 
)

Construct a named rule with line number information

References antlr.AlternativeBlock.setAutoGen().


Member Function Documentation

ExceptionSpec antlr.RuleBlock.findExceptionSpec ( String  label  ) 
void antlr.RuleBlock.generate (  ) 
RuleEndElement antlr.RuleBlock.getEndElement (  ) 
boolean antlr.RuleBlock.isLexerAutoGenRule (  ) 
Lookahead antlr.RuleBlock.look ( int  k  ) 
void antlr.RuleBlock.prepareForAnalysis (  ) 
void antlr.RuleBlock.setDefaultErrorHandler ( boolean  value  ) 
void antlr.RuleBlock.setEndElement ( RuleEndElement  re  ) 

Member Data Documentation


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