T
- The return type of the visit operation. Use Void
for
operations with no return type.public class ExpressionBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements ExpressionVisitor<T>
ExpressionVisitor
,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.Constructor and Description |
---|
ExpressionBaseVisitor() |
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
public T visitStart(ExpressionParser.StartContext ctx)
ExpressionParser.start()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStart
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPERMISSION(ExpressionParser.PERMISSIONContext ctx)
PERMISSION
labeled alternative in ExpressionParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPERMISSION
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitNOT(ExpressionParser.NOTContext ctx)
NOT
labeled alternative in ExpressionParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNOT
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitOR(ExpressionParser.ORContext ctx)
OR
labeled alternative in ExpressionParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitOR
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitAND(ExpressionParser.ANDContext ctx)
AND
labeled alternative in ExpressionParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAND
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPAREN(ExpressionParser.PARENContext ctx)
PAREN
labeled alternative in ExpressionParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPAREN
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPermissionClass(ExpressionParser.PermissionClassContext ctx)
ExpressionParser.permissionClass()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPermissionClass
in interface ExpressionVisitor<T>
ctx
- the parse treeCopyright © 2015–2021 Yahoo! Inc.. All rights reserved.