| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.tree |
| Modifier and Type | Class and Description |
|---|---|
class |
Parser.TraceListener |
static class |
Parser.TrimToSizeListener |
| Modifier and Type | Field and Description |
|---|---|
protected List<ParseTreeListener> |
Parser._parseListeners
The list of
ParseTreeListener listeners registered to receive
events during the parse. |
| Modifier and Type | Method and Description |
|---|---|
List<ParseTreeListener> |
Parser.getParseListeners() |
| Modifier and Type | Method and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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–2024 Daniel Sun. All rights reserved.