antlr
Class CharRangeElement

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

class CharRangeElement
extends AlternativeElement


Field Summary
static int AUTO_GEN_BANG
           
static int AUTO_GEN_CARET
           
static int AUTO_GEN_NONE
           
protected  int autoGenType
           
protected  char begin
           
protected  java.lang.String beginText
           
protected  java.lang.String enclosingRuleName
           
protected  char end
           
protected  java.lang.String endText
           
protected  Grammar grammar
           
(package private)  java.lang.String label
           
protected  int line
           
(package private)  AlternativeElement next
           
 
Constructor Summary
CharRangeElement(LexerGrammar g, Token t1, Token t2, int autoGenType)
           
 
Method Summary
 void generate()
           
 int getAutoGenType()
           
 java.lang.String getLabel()
           
 int getLine()
           
 Lookahead look(int k)
           
 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

label

java.lang.String label

begin

protected char begin

end

protected char end

beginText

protected java.lang.String beginText

endText

protected java.lang.String endText

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

CharRangeElement

public CharRangeElement(LexerGrammar g,
                        Token t1,
                        Token t2,
                        int autoGenType)
Method Detail

generate

public void generate()
Overrides:
generate in class GrammarElement

getLabel

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

look

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

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