antlr

Class Alternative

class Alternative extends Object

Intermediate data class holds information about an alternative
Field Summary
protected Lookahead[]cache
protected ExceptionSpecexceptionSpec
AlternativeElementhead
protected intlookaheadDepth
protected StringsemPred
protected SynPredBlocksynPred
AlternativeElementtail
protected TokentreeSpecifier
Constructor Summary
Alternative()
Alternative(AlternativeElement firstElement)
Method Summary
voidaddElement(AlternativeElement e)
booleanatStart()
booleangetAutoGen()
TokengetTreeSpecifier()
voidsetAutoGen(boolean doAutoGen_)

Field Detail

cache

protected Lookahead[] cache

exceptionSpec

protected ExceptionSpec exceptionSpec

head

AlternativeElement head

lookaheadDepth

protected int lookaheadDepth

semPred

protected String semPred

synPred

protected SynPredBlock synPred

tail

AlternativeElement tail

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_)