abstract class GrammarAtom extends AlternativeElement
Modifier and Type | Field and Description |
---|---|
protected String |
ASTNodeType
Set to type of AST node to create during parse.
|
protected String |
atomText |
protected String |
label |
protected boolean |
not |
protected int |
tokenType |
autoGenType, enclosingRuleName, next
AUTO_GEN_BANG, AUTO_GEN_CARET, AUTO_GEN_NONE, column, grammar, line
Constructor and Description |
---|
GrammarAtom(Grammar g,
Token t,
int autoGenType) |
Modifier and Type | Method and Description |
---|---|
String |
getASTNodeType() |
String |
getLabel() |
String |
getText() |
int |
getType() |
void |
setASTNodeType(String type) |
void |
setLabel(String label_) |
void |
setOption(Token option,
Token value) |
String |
toString() |
getAutoGenType, setAutoGenType
generate, getColumn, getLine, look
protected String label
protected String atomText
protected int tokenType
protected boolean not
protected String ASTNodeType
public String getLabel()
getLabel
in class AlternativeElement
public String getText()
public int getType()
public void setLabel(String label_)
setLabel
in class AlternativeElement
public String getASTNodeType()
public void setASTNodeType(String type)
public String toString()
toString
in class GrammarElement