antlr
Class Alternative

java.lang.Object
  |
  +--antlr.Alternative

class Alternative
extends java.lang.Object

Intermediate data class holds information about an alternative


Field Summary
protected  Lookahead[] cache
           
private  boolean doAutoGen
           
protected  ExceptionSpec exceptionSpec
           
(package private)  AlternativeElement head
           
protected  int lookaheadDepth
           
protected  java.lang.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_)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

doAutoGen

private boolean doAutoGen
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_)