Class TypeCalculationBaseVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
TypeCalculationVisitor<T>,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
TypeCalculationVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced by thearithmeticBinarylabeled alternative inTypeCalculationParser.expression().Visit a parse tree produced by thearithmeticUnarylabeled alternative inTypeCalculationParser.expression().Visit a parse tree produced by thebinaryFunctionlabeled alternative inTypeCalculationParser.expression().Visit a parse tree produced byTypeCalculationParser.binaryFunctionName().Visit a parse tree produced by theidentifierlabeled alternative inTypeCalculationParser.expression().Visit a parse tree produced by thenullLiterallabeled alternative inTypeCalculationParser.expression().Visit a parse tree produced by thenumericLiterallabeled alternative inTypeCalculationParser.expression().Visit a parse tree produced by theparenthesizedExpressionlabeled alternative inTypeCalculationParser.expression().Visit a parse tree produced byTypeCalculationParser.typeCalculation().Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
TypeCalculationBaseVisitor
public TypeCalculationBaseVisitor()
-
-
Method Details
-
visitTypeCalculation
Visit a parse tree produced byTypeCalculationParser.typeCalculation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeCalculationin interfaceTypeCalculationVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryFunction
Visit a parse tree produced by thebinaryFunctionlabeled alternative inTypeCalculationParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBinaryFunctionin interfaceTypeCalculationVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
Visit a parse tree produced by theidentifierlabeled alternative inTypeCalculationParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentifierin interfaceTypeCalculationVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
Visit a parse tree produced by thenullLiterallabeled alternative inTypeCalculationParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullLiteralin interfaceTypeCalculationVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedExpression
Visit a parse tree produced by theparenthesizedExpressionlabeled alternative inTypeCalculationParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenthesizedExpressionin interfaceTypeCalculationVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArithmeticBinary
Visit a parse tree produced by thearithmeticBinarylabeled alternative inTypeCalculationParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArithmeticBinaryin interfaceTypeCalculationVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumericLiteral
Visit a parse tree produced by thenumericLiterallabeled alternative inTypeCalculationParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumericLiteralin interfaceTypeCalculationVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArithmeticUnary
Visit a parse tree produced by thearithmeticUnarylabeled alternative inTypeCalculationParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArithmeticUnaryin interfaceTypeCalculationVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryFunctionName
Visit a parse tree produced byTypeCalculationParser.binaryFunctionName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBinaryFunctionNamein interfaceTypeCalculationVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-