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 StringSet to type of AST node to create during parse.protected Stringprotected Stringprotected booleanprotected intFields inherited from class antlr.AlternativeElement
autoGenType, enclosingRuleName, nextFields 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, setAutoGenTypeMethods 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:
getLabelin classAlternativeElement
-
getText
-
getType
public int getType() -
setLabel
- Overrides:
setLabelin classAlternativeElement
-
getASTNodeType
-
setASTNodeType
-
setOption
-
toString
- Specified by:
toStringin classGrammarElement
-