| Modifier and Type | Field and Description |
|---|---|
| protected ATNInterpreter | |
| private List | |
| private int | |
| public static final int | |
| private static final Map | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public ATN | |
| public String | getErrorHeader(RecognitionException e)
What is the error header, normally line/character position information? |
| public ANTLRErrorListener | |
| public List | |
| public abstract String | |
| public abstract IntStream | |
| public ATNInterpreter | Returns: The ATN interpreter used by the recognizer for prediction.Get the ATN interpreter used by the recognizer for prediction. |
| public ParseInfo | getParseInfo()
If profiling during the parse/lex, this will return DecisionInfo records for each decision in recognizer in a ParseInfo object. |
| public Map | |
| public abstract String[] | |
| public String | getSerializedATN()
If this recognizer was generated, it will have a serialized ATN representation of the grammar. |
| public final int | |
| public String | getTokenErrorDisplay(Token t)
Deprecated
This method is not called by the ANTLR 4 Runtime.
How should a token be displayed in an error message?
|
| public abstract String[] | getTokenNames()
Deprecated
Use
Used to print out token names like ID during debugging and
error reporting.
getVocabulary() instead.
|
| public int | |
| public Map | |
| public Vocabulary | Returns: AVocabulary instance providing information about the
vocabulary used by the grammar.Get the vocabulary used by the recognizer. |
| public boolean | |
| public void | |
| public void | |
| public boolean | |
| public void | setInterpreter(ATNInterpreter
The ATN interpreter used by the recognizer for
prediction. interpreter)Set the ATN interpreter used by the recognizer for prediction. |
| public final void | setState(int atnState)
Indicate that the recognizer has changed internal state that is consistent with the ATN state passed in. This way we always know where we are in the ATN as the parser goes along. |
| _interp | back to summary |
|---|---|
| protected ATNInterpreter _interp | |
| _listeners | back to summary |
|---|---|
private List<ANTLRErrorListener<? super Symbol>> _listeners
| |
| _stateNumber | back to summary |
|---|---|
| private int _stateNumber | |
| EOF | back to summary |
|---|---|
| public static final int EOF | |
| ruleIndexMapCache | back to summary |
|---|---|
| private static final Map<String[], Map<String, Integer>> ruleIndexMapCache | |
| tokenTypeMapCache | back to summary |
|---|---|
| private static final Map<Vocabulary, Map<String, Integer>> tokenTypeMapCache | |
| Recognizer | back to summary |
|---|---|
| public Recognizer() | |
| action | back to summary |
|---|---|
| public void action(RuleContext _localctx, int ruleIndex, int actionIndex) | |
| addErrorListener | back to summary |
|---|---|
public void addErrorListener(ANTLRErrorListener<? super Symbol> listener)
| |
| getATN | back to summary |
|---|---|
| public ATN getATN() Get the | |
| getErrorHeader | back to summary |
|---|---|
| public String getErrorHeader(RecognitionException e) What is the error header, normally line/character position information?
| |
| getErrorListenerDispatch | back to summary |
|---|---|
| public ANTLRErrorListener | |
| getErrorListeners | back to summary |
|---|---|
public List
| |
| getGrammarFileName | back to summary |
|---|---|
| public abstract String getGrammarFileName() For debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method. | |
| getInputStream | back to summary |
|---|---|
| public abstract IntStream getInputStream() | |
| getInterpreter | back to summary |
|---|---|
| public ATNInterpreter getInterpreter() Get the ATN interpreter used by the recognizer for prediction.
| |
| getParseInfo | back to summary |
|---|---|
| public ParseInfo getParseInfo() If profiling during the parse/lex, this will return DecisionInfo records for each decision in recognizer in a ParseInfo object.
| |
| getRuleIndexMap | back to summary |
|---|---|
| public Map Get a map from rule names to rule indexes. Used for XPath and tree pattern compilation.
| |
| getRuleNames | back to summary |
|---|---|
| public abstract String[] getRuleNames() | |
| getSerializedATN | back to summary |
|---|---|
| public String getSerializedATN() If this recognizer was generated, it will have a serialized ATN representation of the grammar. For interpreters, we don't know their serialized ATN despite having created the interpreter from it.
| |
| getState | back to summary |
|---|---|
| public final int getState() | |
| getTokenErrorDisplay | back to summary |
|---|---|
| public String getTokenErrorDisplay(Token t)
Deprecated This method is not called by the ANTLR 4 Runtime. Specific
implementations of How should a token be displayed in an error message? The default is to display just the text, but during development you might want to have a lot of information spit out. Override in that case to use t.toString() (which, for CommonToken, dumps everything about the token). This is better than forcing you to override a method in your token objects because you don't have to go modify your lexer so that it creates a new Java type.
| |
| getTokenNames | back to summary |
|---|---|
| public abstract String[] getTokenNames()
Deprecated Use Used to print out token names like ID during debugging and error reporting. The generated parsers implement a method that overrides this to point to their String[] tokenNames.
| |
| getTokenType | back to summary |
|---|---|
| public int getTokenType(String tokenName) | |
| getTokenTypeMap | back to summary |
|---|---|
| public Map Get a map from token names to token types. Used for XPath and tree pattern compilation.
| |
| getVocabulary | back to summary |
|---|---|
| public Vocabulary getVocabulary() Get the vocabulary used by the recognizer.
| |
| precpred | back to summary |
|---|---|
| public boolean precpred(RuleContext localctx, int precedence) | |
| removeErrorListener | back to summary |
|---|---|
| public void removeErrorListener(ANTLRErrorListener<? super Symbol> listener) | |
| removeErrorListeners | back to summary |
|---|---|
| public void removeErrorListeners() | |
| sempred | back to summary |
|---|---|
| public boolean sempred(RuleContext _localctx, int ruleIndex, int actionIndex) | |
| setInterpreter | back to summary |
|---|---|
| public void setInterpreter(ATNInterpreter interpreter) Set the ATN interpreter used by the recognizer for prediction.
| |
| setState | back to summary |
|---|---|
| public final void setState(int atnState) Indicate that the recognizer has changed internal state that is consistent with the ATN state passed in. This way we always know where we are in the ATN as the parser goes along. The rule context objects form a stack that lets us see the stack of invoking rules. Combine this and we have complete ATN configuration information. | |