| 程序包 | 说明 |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.tree |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Parser.TraceListener |
static class |
Parser.TrimToSizeListener |
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<ParseTreeListener> |
Parser._parseListeners
The list of
ParseTreeListener listeners registered to receive
events during the parse. |
| 限定符和类型 | 方法和说明 |
|---|---|
List<ParseTreeListener> |
Parser.getParseListeners() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Parser.addParseListener(ParseTreeListener listener)
Registers
listener to receive events during the parsing process. |
void |
ParserRuleContext.enterRule(ParseTreeListener listener) |
void |
ParserRuleContext.exitRule(ParseTreeListener listener) |
void |
Parser.removeParseListener(ParseTreeListener listener)
Remove
listener from the list of parse listeners. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
ParseTreeWalker.enterRule(ParseTreeListener listener,
RuleNode r)
Enters a grammar rule by first triggering the generic event
enterEveryRule(org.antlr.v4.runtime.ParserRuleContext)
then by triggering the event specific to the given parse tree node |
protected void |
ParseTreeWalker.exitRule(ParseTreeListener listener,
RuleNode r)
Exits a grammar rule by first triggering the event specific to the given parse tree node
then by triggering the generic event
exitEveryRule(org.antlr.v4.runtime.ParserRuleContext) |
void |
ParseTreeWalker.walk(ParseTreeListener listener,
ParseTree t)
Performs a walk on the given parse tree starting at the root and going down recursively
with depth-first search.
|
Copyright © 1992–2022 Daniel Sun. All rights reserved.