T
- The return type of the visit operation. Use Void
for
operations with no return type.public class FormCalcBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements FormCalcVisitor<T>
FormCalcVisitor
,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.Constructor and Description |
---|
FormCalcBaseVisitor() |
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
public T visitExpression(@NotNull FormCalcParser.ExpressionContext ctx)
FormCalcParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpression
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitVariableDeclarator(@NotNull FormCalcParser.VariableDeclaratorContext ctx)
FormCalcParser.variableDeclarator()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclarator
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitVariableDeclaratorId(@NotNull FormCalcParser.VariableDeclaratorIdContext ctx)
FormCalcParser.variableDeclaratorId()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclaratorId
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitAssign(@NotNull FormCalcParser.AssignContext ctx)
FormCalcParser.assign()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAssign
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitForDownToStatement(@NotNull FormCalcParser.ForDownToStatementContext ctx)
FormCalcParser.forDownToStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForDownToStatement
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitCompilationUnit(@NotNull FormCalcParser.CompilationUnitContext ctx)
FormCalcParser.compilationUnit()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCompilationUnit
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitExpressionList(@NotNull FormCalcParser.ExpressionListContext ctx)
FormCalcParser.expressionList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpressionList
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitRelationalOperators(@NotNull FormCalcParser.RelationalOperatorsContext ctx)
FormCalcParser.relationalOperators()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitRelationalOperators
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitStatementExpression(@NotNull FormCalcParser.StatementExpressionContext ctx)
FormCalcParser.statementExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStatementExpression
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitForUpToStatement(@NotNull FormCalcParser.ForUpToStatementContext ctx)
FormCalcParser.forUpToStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForUpToStatement
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitVariableInitializer(@NotNull FormCalcParser.VariableInitializerContext ctx)
FormCalcParser.variableInitializer()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableInitializer
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitBlock(@NotNull FormCalcParser.BlockContext ctx)
FormCalcParser.block()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBlock
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitBlockStatement(@NotNull FormCalcParser.BlockStatementContext ctx)
FormCalcParser.blockStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBlockStatement
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitElseStatement(@NotNull FormCalcParser.ElseStatementContext ctx)
FormCalcParser.elseStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElseStatement
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitType(@NotNull FormCalcParser.TypeContext ctx)
FormCalcParser.type()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitType
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitElseIfStatement(@NotNull FormCalcParser.ElseIfStatementContext ctx)
FormCalcParser.elseIfStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElseIfStatement
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitWildcardExpression(@NotNull FormCalcParser.WildcardExpressionContext ctx)
FormCalcParser.wildcardExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitWildcardExpression
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitIntegerLiteral(@NotNull FormCalcParser.IntegerLiteralContext ctx)
FormCalcParser.integerLiteral()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIntegerLiteral
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitQualifiedNameList(@NotNull FormCalcParser.QualifiedNameListContext ctx)
FormCalcParser.qualifiedNameList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitQualifiedNameList
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitPrimary(@NotNull FormCalcParser.PrimaryContext ctx)
FormCalcParser.primary()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPrimary
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitNullEqualityExpression(@NotNull FormCalcParser.NullEqualityExpressionContext ctx)
FormCalcParser.nullEqualityExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNullEqualityExpression
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitVariableModifier(@NotNull FormCalcParser.VariableModifierContext ctx)
FormCalcParser.variableModifier()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableModifier
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitParExpression(@NotNull FormCalcParser.ParExpressionContext ctx)
FormCalcParser.parExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitParExpression
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitEqualityOperators(@NotNull FormCalcParser.EqualityOperatorsContext ctx)
FormCalcParser.equalityOperators()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEqualityOperators
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitQualifiedName(@NotNull FormCalcParser.QualifiedNameContext ctx)
FormCalcParser.qualifiedName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitQualifiedName
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitBooleanLiteral(@NotNull FormCalcParser.BooleanLiteralContext ctx)
FormCalcParser.booleanLiteral()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBooleanLiteral
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitIfStatement(@NotNull FormCalcParser.IfStatementContext ctx)
FormCalcParser.ifStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIfStatement
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitAndOperators(@NotNull FormCalcParser.AndOperatorsContext ctx)
FormCalcParser.andOperators()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAndOperators
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitStatement(@NotNull FormCalcParser.StatementContext ctx)
FormCalcParser.statement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStatement
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitVariableAssign(@NotNull FormCalcParser.VariableAssignContext ctx)
FormCalcParser.variableAssign()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableAssign
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitArguments(@NotNull FormCalcParser.ArgumentsContext ctx)
FormCalcParser.arguments()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArguments
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitMethodBody(@NotNull FormCalcParser.MethodBodyContext ctx)
FormCalcParser.methodBody()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMethodBody
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitNumericOperators(@NotNull FormCalcParser.NumericOperatorsContext ctx)
FormCalcParser.numericOperators()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNumericOperators
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitArrayInitializer(@NotNull FormCalcParser.ArrayInitializerContext ctx)
FormCalcParser.arrayInitializer()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArrayInitializer
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitWhileStatement(@NotNull FormCalcParser.WhileStatementContext ctx)
FormCalcParser.whileStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitWhileStatement
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitOrOperators(@NotNull FormCalcParser.OrOperatorsContext ctx)
FormCalcParser.orOperators()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitOrOperators
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitAccessor(@NotNull FormCalcParser.AccessorContext ctx)
FormCalcParser.accessor()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAccessor
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitPrimitiveType(@NotNull FormCalcParser.PrimitiveTypeContext ctx)
FormCalcParser.primitiveType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPrimitiveType
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitFuncCallExpression(@NotNull FormCalcParser.FuncCallExpressionContext ctx)
FormCalcParser.funcCallExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFuncCallExpression
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitThenStatement(@NotNull FormCalcParser.ThenStatementContext ctx)
FormCalcParser.thenStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitThenStatement
in interface FormCalcVisitor<T>
ctx
- the parse treepublic T visitLiteral(@NotNull FormCalcParser.LiteralContext ctx)
FormCalcParser.literal()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLiteral
in interface FormCalcVisitor<T>
ctx
- the parse treeCopyright (C) 1998-2018 iText Group NV. All Rights Reserved.