Package antlr
Class GrammarAtom
java.lang.Object
antlr.GrammarElement
antlr.AlternativeElement
antlr.GrammarAtom
- Direct Known Subclasses:
CharLiteralElement
,StringLiteralElement
,TokenRefElement
,WildcardElement
A GrammarAtom is either a token ref, a character ref, or string.
The analysis doesn't care.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Set to type of AST node to create during parse.protected String
protected String
protected boolean
protected int
Fields inherited from class antlr.AlternativeElement
autoGenType, enclosingRuleName, next
Fields inherited from class antlr.GrammarElement
AUTO_GEN_BANG, AUTO_GEN_CARET, AUTO_GEN_NONE, column, grammar, line
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class antlr.AlternativeElement
getAutoGenType, setAutoGenType
Methods inherited from class antlr.GrammarElement
generate, getColumn, getLine, look
-
Field Details
-
label
-
atomText
-
tokenType
protected int tokenType -
not
protected boolean not -
ASTNodeType
Set to type of AST node to create during parse. Defaults to what is set in the TokenSymbol.
-
-
Constructor Details
-
GrammarAtom
-
-
Method Details
-
getLabel
- Overrides:
getLabel
in classAlternativeElement
-
getText
-
getType
public int getType() -
setLabel
- Overrides:
setLabel
in classAlternativeElement
-
getASTNodeType
-
setASTNodeType
-
setOption
-
toString
- Specified by:
toString
in classGrammarElement
-