antlr

Class Alternative


(package private) class Alternative
extends Object

Intermediate data class holds information about an alternative

Field Summary

protected Lookahead[]
cache
protected ExceptionSpec
exceptionSpec
(package private) AlternativeElement
head
protected int
lookaheadDepth
protected String
semPred
protected SynPredBlock
synPred
(package private) AlternativeElement
tail
protected Token
treeSpecifier

Constructor Summary

Alternative()
Alternative(AlternativeElement firstElement)

Method Summary

void
addElement(AlternativeElement e)
boolean
atStart()
boolean
getAutoGen()
Token
getTreeSpecifier()
void
setAutoGen(boolean doAutoGen_)

Field Details

cache

protected Lookahead[] cache


exceptionSpec

protected ExceptionSpec exceptionSpec


head

(package private)  AlternativeElement head


lookaheadDepth

protected int lookaheadDepth


semPred

protected String semPred


synPred

protected SynPredBlock synPred


tail

(package private)  AlternativeElement tail


treeSpecifier

protected Token treeSpecifier

Constructor Details

Alternative

public Alternative()


Alternative

public Alternative(AlternativeElement firstElement)

Method Details

addElement

public void addElement(AlternativeElement e)


atStart

public boolean atStart()


getAutoGen

public boolean getAutoGen()


getTreeSpecifier

public Token getTreeSpecifier()


setAutoGen

public void setAutoGen(boolean doAutoGen_)