Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.tree | |
org.antlr.v4.tool |
Modifier and Type | Class | Description |
---|---|---|
class |
InterpreterRuleContext |
This class extends
ParserRuleContext by allowing the value of
InterpreterRuleContext.getRuleIndex() to be explicitly set for the context. |
class |
ParserRuleContext |
A rule invocation record for parsing.
|
class |
RuleContext |
A rule context is a record of a single rule invocation.
|
class |
RuleContextWithAltNum |
A handy class for use with
options {contextSuperClass=org.antlr.v4.runtime.RuleContextWithAltNum;}
that provides a backing field / impl for the outer alternative number
matched for an internal parse tree node.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
ParseTreeWalker.enterRule(ParseTreeListener listener,
RuleNode r) |
The discovery of a rule node, involves sending two events: the generic
ParseTreeListener.enterEveryRule(org.antlr.v4.runtime.ParserRuleContext) and a
RuleContext -specific event. |
protected void |
ParseTreeWalker.exitRule(ParseTreeListener listener,
RuleNode r) |
|
protected boolean |
AbstractParseTreeVisitor.shouldVisitNextChild(RuleNode node,
T currentResult) |
This method is called after visiting each child in
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) . |
T |
AbstractParseTreeVisitor.visitChildren(RuleNode node) |
Visit the children of a node, and return a user-defined result of the
operation.
|
T |
ParseTreeVisitor.visitChildren(RuleNode node) |
Visit the children of a node, and return a user-defined result of the
operation.
|
Modifier and Type | Class | Description |
---|---|---|
class |
GrammarInterpreterRuleContext |
An
InterpreterRuleContext that knows which alternative
for a rule was matched. |
Copyright © 1992–2019 ANTLR. All rights reserved.