antlr
public class RuleBlock extends AlternativeBlock
Field Summary | |
---|---|
protected String | argAction |
protected Lookahead[] | cache |
protected boolean | defaultErrorHandler |
protected RuleEndElement | endNode |
Hashtable | exceptionSpecs |
protected String | ignoreRule |
Vector | labeledElements |
protected boolean[] | lock |
protected String | returnAction |
protected String | ruleName |
protected boolean | testLiterals |
protected String | throwsSpec |
Constructor Summary | |
---|---|
RuleBlock(Grammar g, String r) Construct a named rule. | |
RuleBlock(Grammar g, String r, int line, boolean doAutoGen_) Construct a named rule with line number information |
Method Summary | |
---|---|
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() |