antlr
Class AlternativeElement

java.lang.Object
  |
  +--antlr.GrammarElement
        |
        +--antlr.AlternativeElement
Direct Known Subclasses:
ActionElement, AlternativeBlock, BlockEndElement, CharRangeElement, GrammarAtom, RuleRefElement, TokenRangeElement

abstract class AlternativeElement
extends GrammarElement


Field Summary
static int AUTO_GEN_BANG
           
static int AUTO_GEN_CARET
           
static int AUTO_GEN_NONE
           
protected  int autoGenType
           
protected  java.lang.String enclosingRuleName
           
protected  Grammar grammar
           
protected  int line
           
(package private)  AlternativeElement next
           
 
Constructor Summary
AlternativeElement(Grammar g)
           
AlternativeElement(Grammar g, int autoGenType_)
           
 
Method Summary
 void generate()
           
 int getAutoGenType()
           
 java.lang.String getLabel()
           
 int getLine()
           
 Lookahead look(int k)
           
 void setLabel(java.lang.String label)
           
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

next

AlternativeElement next

autoGenType

protected int autoGenType

enclosingRuleName

protected java.lang.String enclosingRuleName

AUTO_GEN_NONE

public static final int AUTO_GEN_NONE
See Also:
Constant Field Values

AUTO_GEN_CARET

public static final int AUTO_GEN_CARET
See Also:
Constant Field Values

AUTO_GEN_BANG

public static final int AUTO_GEN_BANG
See Also:
Constant Field Values

grammar

protected Grammar grammar

line

protected int line
Constructor Detail

AlternativeElement

public AlternativeElement(Grammar g)

AlternativeElement

public AlternativeElement(Grammar g,
                          int autoGenType_)
Method Detail

getAutoGenType

public int getAutoGenType()

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String label)

generate

public void generate()

getLine

public int getLine()

look

public Lookahead look(int k)

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object