Package antlr
Class Alternative
- java.lang.Object
-
- antlr.Alternative
-
class Alternative extends java.lang.ObjectIntermediate data class holds information about an alternative
-
-
Field Summary
Fields Modifier and Type Field Description protected Lookahead[]cacheprotected ExceptionSpecexceptionSpec(package private) AlternativeElementheadprotected intlookaheadDepthprotected java.lang.StringsemPredprotected SynPredBlocksynPred(package private) AlternativeElementtailprotected TokentreeSpecifier
-
Constructor Summary
Constructors Constructor Description Alternative()Alternative(AlternativeElement firstElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(AlternativeElement e)booleanatStart()booleangetAutoGen()TokengetTreeSpecifier()voidsetAutoGen(boolean doAutoGen_)
-
-
-
Field Detail
-
head
AlternativeElement head
-
tail
AlternativeElement tail
-
synPred
protected SynPredBlock synPred
-
semPred
protected java.lang.String semPred
-
exceptionSpec
protected ExceptionSpec exceptionSpec
-
cache
protected Lookahead[] cache
-
lookaheadDepth
protected int lookaheadDepth
-
treeSpecifier
protected Token treeSpecifier
-
-
Constructor Detail
-
Alternative
public Alternative()
-
Alternative
public Alternative(AlternativeElement firstElement)
-
-
Method Detail
-
addElement
public void addElement(AlternativeElement e)
-
atStart
public boolean atStart()
-
getAutoGen
public boolean getAutoGen()
-
getTreeSpecifier
public Token getTreeSpecifier()
-
setAutoGen
public void setAutoGen(boolean doAutoGen_)
-
-