Package antlr
Class AlternativeBlock
java.lang.Object
antlr.GrammarElement
antlr.AlternativeElement
antlr.AlternativeBlock
- Direct Known Subclasses:
BlockWithImpliedExitPath
,RuleBlock
,SynPredBlock
,TreeElement
A list of alternatives
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Vector
protected int
protected int
protected int
protected boolean
protected boolean
(package private) boolean
(package private) boolean
protected boolean
protected boolean
protected int
protected String
protected String
protected static int
(package private) boolean
protected boolean
Fields inherited from class antlr.AlternativeElement
autoGenType, enclosingRuleName, next
Fields inherited from class antlr.GrammarElement
AUTO_GEN_BANG, AUTO_GEN_CARET, AUTO_GEN_NONE, column, grammar, line
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
generate()
getAlternativeAt
(int i) boolean
getLabel()
look
(int k) void
void
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
void
setAutoGen
(boolean doAutoGen_) void
setInitAction
(String initAction_) void
void
toString()
Methods inherited from class antlr.AlternativeElement
getAutoGenType, setAutoGenType
Methods inherited from class antlr.GrammarElement
getColumn, getLine
-
Field Details
-
initAction
-
alternatives
-
label
-
alti
protected int alti -
altj
protected int altj -
analysisAlt
protected int analysisAlt -
hasAnAction
protected boolean hasAnAction -
hasASynPred
protected boolean hasASynPred -
ID
protected int ID -
nblks
protected static int nblks -
not
boolean not -
greedy
boolean greedy -
greedySet
boolean greedySet -
doAutoGen
protected boolean doAutoGen -
warnWhenFollowAmbig
protected boolean warnWhenFollowAmbig -
generateAmbigWarnings
protected boolean generateAmbigWarnings
-
-
Constructor Details
-
AlternativeBlock
-
AlternativeBlock
-
-
Method Details
-
addAlternative
-
generate
public void generate()- Overrides:
generate
in classGrammarElement
-
getAlternativeAt
-
getAlternatives
-
getAutoGen
public boolean getAutoGen() -
getInitAction
-
getLabel
- Overrides:
getLabel
in classAlternativeElement
-
look
- Overrides:
look
in classGrammarElement
-
prepareForAnalysis
public void prepareForAnalysis() -
removeTrackingOfRuleRefs
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. -
setAlternatives
-
setAutoGen
public void setAutoGen(boolean doAutoGen_) -
setInitAction
-
setLabel
- Overrides:
setLabel
in classAlternativeElement
-
setOption
-
toString
- Specified by:
toString
in classGrammarElement
-