class CharRangeElement extends AlternativeElement
Modifier and Type | Field and Description |
---|---|
protected char |
begin |
protected String |
beginText |
protected char |
end |
protected String |
endText |
(package private) String |
label |
autoGenType, enclosingRuleName, next
AUTO_GEN_BANG, AUTO_GEN_CARET, AUTO_GEN_NONE, column, grammar, line
Constructor and Description |
---|
CharRangeElement(LexerGrammar g,
Token t1,
Token t2,
int autoGenType) |
Modifier and Type | Method and Description |
---|---|
void |
generate() |
String |
getLabel() |
Lookahead |
look(int k) |
void |
setLabel(String label_) |
String |
toString() |
getAutoGenType, setAutoGenType
getColumn, getLine
String label
protected char begin
protected char end
protected String beginText
protected String endText
public CharRangeElement(LexerGrammar g, Token t1, Token t2, int autoGenType)
public void generate()
generate
in class GrammarElement
public String getLabel()
getLabel
in class AlternativeElement
public Lookahead look(int k)
look
in class GrammarElement
public void setLabel(String label_)
setLabel
in class AlternativeElement
public String toString()
toString
in class GrammarElement