| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.atn | |
| org.antlr.v4.runtime.dfa | |
| org.antlr.v4.runtime.tree.xpath |
| Modifier and Type | Class and Description |
|---|---|
class |
Lexer
A lexer is recognizer that draws input symbols from a character stream.
|
class |
LexerInterpreter |
class |
Parser
This is all the parsing support code essentially; most of it is error recovery stuff.
|
class |
ParserInterpreter
A parser simulator that mimics what ANTLR's generated
parser code does.
|
| Modifier and Type | Method and Description |
|---|---|
Recognizer<?,?> |
RecognitionException.getRecognizer()
Gets the
Recognizer where this exception occurred. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
RecognitionException.getOffendingToken(Recognizer<T,?> recognizer) |
protected <Symbol extends Token> |
RecognitionException.setOffendingToken(Recognizer<Symbol,?> recognizer,
Symbol offendingToken) |
<T> void |
ConsoleErrorListener.syntaxError(Recognizer<T,?> recognizer,
T offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e)
Upon syntax error, notify any interested parties.
|
<T extends Token> |
BaseErrorListener.syntaxError(Recognizer<T,?> recognizer,
T offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
<T extends Symbol> |
ProxyErrorListener.syntaxError(Recognizer<T,?> recognizer,
T offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
<T extends Symbol> |
ANTLRErrorListener.syntaxError(Recognizer<T,?> recognizer,
T offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e)
Upon syntax error, notify any interested parties.
|
String |
RuleContext.toString(Recognizer<?,?> recog) |
String |
CommonToken.toString(Recognizer<?,?> r) |
String |
RuleContext.toString(Recognizer<?,?> recog,
RuleContext stop) |
| Constructor and Description |
|---|
NoViableAltException(Recognizer<Token,?> recognizer,
TokenStream input,
Token startToken,
Token offendingToken,
ATNConfigSet deadEndConfigs,
ParserRuleContext ctx) |
RecognitionException(Recognizer<Token,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
RecognitionException(String message,
Recognizer<Token,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
abstract <T> boolean |
SemanticContext.eval(Recognizer<T,?> parser,
RuleContext parserCallStack)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
<T> boolean |
SemanticContext.Predicate.eval(Recognizer<T,?> parser,
RuleContext parserCallStack) |
<T> boolean |
SemanticContext.PrecedencePredicate.eval(Recognizer<T,?> parser,
RuleContext parserCallStack) |
<T> boolean |
SemanticContext.AND.eval(Recognizer<T,?> parser,
RuleContext parserCallStack)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
<T> boolean |
SemanticContext.OR.eval(Recognizer<T,?> parser,
RuleContext parserCallStack)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
SemanticContext |
SemanticContext.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack)
Evaluate the precedence predicates for the context and reduce the result.
|
SemanticContext |
SemanticContext.PrecedencePredicate.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
SemanticContext |
SemanticContext.AND.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
SemanticContext |
SemanticContext.OR.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
String |
ATNConfig.toString(Recognizer<?,?> recog,
boolean showAlt) |
String |
ATNConfig.toString(Recognizer<?,?> recog,
boolean showAlt,
boolean showContext) |
String[] |
PredictionContext.toStrings(Recognizer<?,?> recognizer,
int currentState) |
String[] |
EmptyPredictionContext.toStrings(Recognizer<?,?> recognizer,
int currentState) |
String[] |
PredictionContext.toStrings(Recognizer<?,?> recognizer,
PredictionContext stop,
int currentState) |
String[] |
EmptyPredictionContext.toStrings(Recognizer<?,?> recognizer,
PredictionContext stop,
int currentState) |
| Constructor and Description |
|---|
DFASerializer(DFA dfa,
Recognizer<?,?> parser) |
| Modifier and Type | Class and Description |
|---|---|
class |
XPathLexer |
| Modifier and Type | Method and Description |
|---|---|
<T extends Integer> |
XPathLexerErrorListener.syntaxError(Recognizer<T,?> recognizer,
T offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
Copyright © 1992–2024 Daniel Sun. All rights reserved.