antlr
Class RuleRefElement

java.lang.Object
  |
  +--antlr.GrammarElement
        |
        +--antlr.AlternativeElement
              |
              +--antlr.RuleRefElement

class RuleRefElement
extends AlternativeElement


Field Summary
protected  java.lang.String args
           
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  java.lang.String idAssign
           
protected  java.lang.String label
           
protected  int line
           
(package private)  AlternativeElement next
           
protected  java.lang.String targetRule
           
 
Constructor Summary
RuleRefElement(Grammar g, java.lang.String t, int line, int autoGenType_)
           
RuleRefElement(Grammar g, Token t, int autoGenType_)
           
 
Method Summary
 void generate()
           
 java.lang.String getArgs()
           
 int getAutoGenType()
           
 java.lang.String getIdAssign()
           
 java.lang.String getLabel()
           
 int getLine()
           
 Lookahead look(int k)
           
 void setArgs(java.lang.String a)
           
 void setIdAssign(java.lang.String id)
           
 void setLabel(java.lang.String label_)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

targetRule

protected java.lang.String targetRule

args

protected java.lang.String args

idAssign

protected java.lang.String idAssign

label

protected java.lang.String label

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

RuleRefElement

public RuleRefElement(Grammar g,
                      Token t,
                      int autoGenType_)

RuleRefElement

public RuleRefElement(Grammar g,
                      java.lang.String t,
                      int line,
                      int autoGenType_)
Method Detail

generate

public void generate()
Overrides:
generate in class GrammarElement

getArgs

public java.lang.String getArgs()

getIdAssign

public java.lang.String getIdAssign()

getLabel

public java.lang.String getLabel()
Overrides:
getLabel in class AlternativeElement

look

public Lookahead look(int k)
Overrides:
look in class GrammarElement

setArgs

public void setArgs(java.lang.String a)

setIdAssign

public void setIdAssign(java.lang.String id)

setLabel

public void setLabel(java.lang.String label_)
Overrides:
setLabel in class AlternativeElement

toString

public java.lang.String toString()
Specified by:
toString in class GrammarElement

getAutoGenType

public int getAutoGenType()

getLine

public int getLine()