|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.GrammarElement | +--antlr.AlternativeElement | +--antlr.AlternativeBlock | +--antlr.RuleBlock
Untamed:
Field Summary | |
protected Vector |
alternatives
|
protected int |
alti
|
protected int |
altj
|
protected int |
analysisAlt
|
protected String |
argAction
|
static int |
AUTO_GEN_BANG
|
static int |
AUTO_GEN_CARET
|
static int |
AUTO_GEN_NONE
|
protected int |
autoGenType
|
protected Lookahead[] |
cache
|
protected boolean |
defaultErrorHandler
|
protected boolean |
doAutoGen
|
protected String |
enclosingRuleName
|
protected RuleEndElement |
endNode
|
(package private) Hashtable |
exceptionSpecs
|
protected boolean |
generateAmbigWarnings
|
protected Grammar |
grammar
|
(package private) boolean |
greedy
|
(package private) boolean |
greedySet
|
protected boolean |
hasAnAction
|
protected boolean |
hasASynPred
|
protected int |
ID
|
protected String |
ignoreRule
|
protected String |
initAction
|
protected String |
label
|
(package private) Vector |
labeledElements
|
protected int |
line
|
protected boolean[] |
lock
|
protected static int |
nblks
|
(package private) AlternativeElement |
next
|
(package private) boolean |
not
|
protected String |
returnAction
|
protected String |
ruleName
|
protected boolean |
testLiterals
|
protected String |
throwsSpec
|
protected boolean |
warnWhenFollowAmbig
|
Constructor Summary | |
RuleBlock(Grammar g,
String r)
Enabled: Construct a named rule. |
|
RuleBlock(Grammar g,
String r,
int line,
boolean doAutoGen_)
Enabled: Construct a named rule with line number information |
Method Summary | |
void |
addAlternative(Alternative alt)
|
void |
addExceptionSpec(ExceptionSpec ex)
Enabled: |
ExceptionSpec |
findExceptionSpec(String label)
Enabled: |
ExceptionSpec |
findExceptionSpec(Token label)
Enabled: |
void |
generate()
Enabled: |
Alternative |
getAlternativeAt(int i)
|
Vector |
getAlternatives()
|
boolean |
getAutoGen()
|
int |
getAutoGenType()
|
boolean |
getDefaultErrorHandler()
Enabled: |
RuleEndElement |
getEndElement()
Enabled: |
String |
getIgnoreRule()
Enabled: |
String |
getInitAction()
|
String |
getLabel()
|
int |
getLine()
|
String |
getRuleName()
Enabled: |
boolean |
getTestLiterals()
Enabled: |
boolean |
isLexerAutoGenRule()
Enabled: |
Lookahead |
look(int k)
Enabled: |
void |
prepareForAnalysis()
Enabled: |
void |
removeTrackingOfRuleRefs(Grammar g)
Walk the syntactic predicate and, for a rule ref R, remove the ref from the list of FOLLOW references for R (stored in the symbol table. |
void |
setAlternatives(Vector v)
|
void |
setAutoGen(boolean doAutoGen_)
|
void |
setDefaultErrorHandler(boolean value)
Enabled: |
void |
setEndElement(RuleEndElement re)
Enabled: |
void |
setInitAction(String initAction_)
|
void |
setLabel(String label_)
|
void |
setOption(Token key,
Token value)
Enabled: |
String |
toString()
Suppressed: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String ruleName
protected String argAction
protected String throwsSpec
protected String returnAction
protected RuleEndElement endNode
protected boolean testLiterals
Vector labeledElements
protected boolean[] lock
protected Lookahead[] cache
Hashtable exceptionSpecs
protected boolean defaultErrorHandler
protected String ignoreRule
protected String initAction
protected Vector alternatives
protected String label
protected int alti
protected int altj
protected int analysisAlt
protected boolean hasAnAction
protected boolean hasASynPred
protected int ID
protected static int nblks
boolean not
boolean greedy
boolean greedySet
protected boolean doAutoGen
protected boolean warnWhenFollowAmbig
protected boolean generateAmbigWarnings
AlternativeElement next
protected int autoGenType
protected String enclosingRuleName
public static final int AUTO_GEN_NONE
public static final int AUTO_GEN_CARET
public static final int AUTO_GEN_BANG
protected Grammar grammar
protected int line
Constructor Detail |
public RuleBlock(Grammar g, String r)
public RuleBlock(Grammar g, String r, int line, boolean doAutoGen_)
Method Detail |
public void addExceptionSpec(ExceptionSpec ex)
public ExceptionSpec findExceptionSpec(Token label)
public ExceptionSpec findExceptionSpec(String label)
public void generate()
generate
in class AlternativeBlock
public boolean getDefaultErrorHandler()
public RuleEndElement getEndElement()
public String getIgnoreRule()
public String getRuleName()
public boolean getTestLiterals()
public boolean isLexerAutoGenRule()
public Lookahead look(int k)
look
in class AlternativeBlock
public void prepareForAnalysis()
prepareForAnalysis
in class AlternativeBlock
public void setDefaultErrorHandler(boolean value)
public void setEndElement(RuleEndElement re)
public void setOption(Token key, Token value)
setOption
in class AlternativeBlock
public String toString()
toString
in class AlternativeBlock
public void addAlternative(Alternative alt)
public Alternative getAlternativeAt(int i)
public Vector getAlternatives()
public boolean getAutoGen()
public String getInitAction()
public String getLabel()
getLabel
in class AlternativeElement
public void removeTrackingOfRuleRefs(Grammar g)
public void setAlternatives(Vector v)
public void setAutoGen(boolean doAutoGen_)
public void setInitAction(String initAction_)
public void setLabel(String label_)
setLabel
in class AlternativeElement
public int getAutoGenType()
public int getLine()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |