Class TypeCalculationBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- io.trino.type.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>
public class TypeCalculationBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements TypeCalculationVisitor<T>
This class provides an empty implementation ofTypeCalculationVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description TypeCalculationBaseVisitor()
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitTypeCalculation
public T visitTypeCalculation(TypeCalculationParser.TypeCalculationContext ctx)
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
public T visitBinaryFunction(TypeCalculationParser.BinaryFunctionContext ctx)
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
public T visitIdentifier(TypeCalculationParser.IdentifierContext ctx)
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
public T visitNullLiteral(TypeCalculationParser.NullLiteralContext ctx)
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
public T visitParenthesizedExpression(TypeCalculationParser.ParenthesizedExpressionContext ctx)
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
public T visitArithmeticBinary(TypeCalculationParser.ArithmeticBinaryContext ctx)
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
public T visitNumericLiteral(TypeCalculationParser.NumericLiteralContext ctx)
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
public T visitArithmeticUnary(TypeCalculationParser.ArithmeticUnaryContext ctx)
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
public T visitBinaryFunctionName(TypeCalculationParser.BinaryFunctionNameContext ctx)
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
-
-