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 visitAllStatements(ExpressionParser.AllStatementsContext ctx)
ExpressionParser.allStatements()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAllStatements
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitStatements(ExpressionParser.StatementsContext ctx)
ExpressionParser.statements()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStatements
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitStatement(ExpressionParser.StatementContext ctx)
ExpressionParser.statement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitBlock(ExpressionParser.BlockContext ctx)
ExpressionParser.block()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBlock
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitIfStatement(ExpressionParser.IfStatementContext ctx)
ExpressionParser.ifStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIfStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitWhileStatement(ExpressionParser.WhileStatementContext ctx)
ExpressionParser.whileStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitWhileStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitDoStatement(ExpressionParser.DoStatementContext ctx)
ExpressionParser.doStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDoStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitForStatement(ExpressionParser.ForStatementContext ctx)
ExpressionParser.forStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitSimpleForStatement(ExpressionParser.SimpleForStatementContext ctx)
ExpressionParser.simpleForStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSimpleForStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitBreakStatement(ExpressionParser.BreakStatementContext ctx)
ExpressionParser.breakStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBreakStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitContinueStatement(ExpressionParser.ContinueStatementContext ctx)
ExpressionParser.continueStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitContinueStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitReturnStatement(ExpressionParser.ReturnStatementContext ctx)
ExpressionParser.returnStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitReturnStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitSwitchStatement(ExpressionParser.SwitchStatementContext ctx)
ExpressionParser.switchStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSwitchStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitCase(ExpressionParser.CaseContext ctx)
Case
labeled alternative in ExpressionParser.switchLabel()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCase
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitDefault(ExpressionParser.DefaultContext ctx)
Default
labeled alternative in ExpressionParser.switchLabel()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDefault
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitExpressionStatement(ExpressionParser.ExpressionStatementContext ctx)
ExpressionParser.expressionStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpressionStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitEmptyStatement(ExpressionParser.EmptyStatementContext ctx)
ExpressionParser.emptyStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEmptyStatement
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitExpression(ExpressionParser.ExpressionContext ctx)
ExpressionParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpression
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitAssignmentExpression(ExpressionParser.AssignmentExpressionContext ctx)
ExpressionParser.assignmentExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAssignmentExpression
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitAssignment(ExpressionParser.AssignmentContext ctx)
ExpressionParser.assignment()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAssignment
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitAssignmentOperator(ExpressionParser.AssignmentOperatorContext ctx)
ExpressionParser.assignmentOperator()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAssignmentOperator
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitCEFallthrough(ExpressionParser.CEFallthroughContext ctx)
CEFallthrough
labeled alternative in ExpressionParser.conditionalExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCEFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitTernaryExpr(ExpressionParser.TernaryExprContext ctx)
TernaryExpr
labeled alternative in ExpressionParser.conditionalExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTernaryExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitCOFallthrough(ExpressionParser.COFallthroughContext ctx)
COFallthrough
labeled alternative in ExpressionParser.conditionalOrExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCOFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitConditionalOrExpr(ExpressionParser.ConditionalOrExprContext ctx)
ConditionalOrExpr
labeled alternative in ExpressionParser.conditionalOrExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConditionalOrExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitCAFallthrough(ExpressionParser.CAFallthroughContext ctx)
CAFallthrough
labeled alternative in ExpressionParser.conditionalAndExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCAFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitConditionalAndExpr(ExpressionParser.ConditionalAndExprContext ctx)
ConditionalAndExpr
labeled alternative in ExpressionParser.conditionalAndExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConditionalAndExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitEqualityExpr(ExpressionParser.EqualityExprContext ctx)
EqualityExpr
labeled alternative in ExpressionParser.equalityExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEqualityExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitEqFallthrough(ExpressionParser.EqFallthroughContext ctx)
EqFallthrough
labeled alternative in ExpressionParser.equalityExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEqFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitReFallthrough(ExpressionParser.ReFallthroughContext ctx)
ReFallthrough
labeled alternative in ExpressionParser.relationalExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitReFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitRelationalExpr(ExpressionParser.RelationalExprContext ctx)
RelationalExpr
labeled alternative in ExpressionParser.relationalExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitRelationalExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitShFallthrough(ExpressionParser.ShFallthroughContext ctx)
ShFallthrough
labeled alternative in ExpressionParser.shiftExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitShFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitShiftExpr(ExpressionParser.ShiftExprContext ctx)
ShiftExpr
labeled alternative in ExpressionParser.shiftExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitShiftExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitAddExpr(ExpressionParser.AddExprContext ctx)
AddExpr
labeled alternative in ExpressionParser.additiveExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAddExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitAdFallthrough(ExpressionParser.AdFallthroughContext ctx)
AdFallthrough
labeled alternative in ExpressionParser.additiveExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAdFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitMultiplicativeExpr(ExpressionParser.MultiplicativeExprContext ctx)
MultiplicativeExpr
labeled alternative in ExpressionParser.multiplicativeExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMultiplicativeExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitMuFallthrough(ExpressionParser.MuFallthroughContext ctx)
MuFallthrough
labeled alternative in ExpressionParser.multiplicativeExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMuFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPowerExpr(ExpressionParser.PowerExprContext ctx)
PowerExpr
labeled alternative in ExpressionParser.powerExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPowerExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPwFallthrough(ExpressionParser.PwFallthroughContext ctx)
PwFallthrough
labeled alternative in ExpressionParser.powerExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPwFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPreCrementExpr(ExpressionParser.PreCrementExprContext ctx)
PreCrementExpr
labeled alternative in ExpressionParser.unaryExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPreCrementExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPlusMinusExpr(ExpressionParser.PlusMinusExprContext ctx)
PlusMinusExpr
labeled alternative in ExpressionParser.unaryExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPlusMinusExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitUaFallthrough(ExpressionParser.UaFallthroughContext ctx)
UaFallthrough
labeled alternative in ExpressionParser.unaryExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitUaFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitComplementExpr(ExpressionParser.ComplementExprContext ctx)
ComplementExpr
labeled alternative in ExpressionParser.unaryExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitComplementExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitNotExpr(ExpressionParser.NotExprContext ctx)
NotExpr
labeled alternative in ExpressionParser.unaryExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNotExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPostfixExpr(ExpressionParser.PostfixExprContext ctx)
PostfixExpr
labeled alternative in ExpressionParser.postfixExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPostfixExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPoFallthrough(ExpressionParser.PoFallthroughContext ctx)
PoFallthrough
labeled alternative in ExpressionParser.postfixExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPoFallthrough
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitPostCrementExpr(ExpressionParser.PostCrementExprContext ctx)
PostCrementExpr
labeled alternative in ExpressionParser.postfixExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPostCrementExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitFunctionCallExpr(ExpressionParser.FunctionCallExprContext ctx)
FunctionCallExpr
labeled alternative in ExpressionParser.unprioritizedExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFunctionCallExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitConstantExpr(ExpressionParser.ConstantExprContext ctx)
ConstantExpr
labeled alternative in ExpressionParser.unprioritizedExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConstantExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitIdExpr(ExpressionParser.IdExprContext ctx)
IdExpr
labeled alternative in ExpressionParser.unprioritizedExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIdExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitWrappedExpr(ExpressionParser.WrappedExprContext ctx)
WrappedExpr
labeled alternative in ExpressionParser.unprioritizedExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitWrappedExpr
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitConstantExpression(ExpressionParser.ConstantExpressionContext ctx)
ExpressionParser.constantExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConstantExpression
in interface ExpressionVisitor<T>
ctx
- the parse treepublic T visitFunctionCall(ExpressionParser.FunctionCallContext ctx)
ExpressionParser.functionCall()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFunctionCall
in interface ExpressionVisitor<T>
ctx
- the parse tree