Package io.trino.type
Interface TypeCalculationVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Superinterfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
- All Known Implementing Classes:
TypeCalculationBaseVisitor
public interface TypeCalculationVisitor<T> extends org.antlr.v4.runtime.tree.ParseTreeVisitor<T>This interface defines a complete generic visitor for a parse tree produced byTypeCalculationParser.
-
-
Method Summary
-
-
-
Method Detail
-
visitTypeCalculation
T visitTypeCalculation(TypeCalculationParser.TypeCalculationContext ctx)
Visit a parse tree produced byTypeCalculationParser.typeCalculation().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryFunction
T visitBinaryFunction(TypeCalculationParser.BinaryFunctionContext ctx)
Visit a parse tree produced by thebinaryFunctionlabeled alternative inTypeCalculationParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
T visitIdentifier(TypeCalculationParser.IdentifierContext ctx)
Visit a parse tree produced by theidentifierlabeled alternative inTypeCalculationParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
T visitNullLiteral(TypeCalculationParser.NullLiteralContext ctx)
Visit a parse tree produced by thenullLiterallabeled alternative inTypeCalculationParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedExpression
T visitParenthesizedExpression(TypeCalculationParser.ParenthesizedExpressionContext ctx)
Visit a parse tree produced by theparenthesizedExpressionlabeled alternative inTypeCalculationParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArithmeticBinary
T visitArithmeticBinary(TypeCalculationParser.ArithmeticBinaryContext ctx)
Visit a parse tree produced by thearithmeticBinarylabeled alternative inTypeCalculationParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumericLiteral
T visitNumericLiteral(TypeCalculationParser.NumericLiteralContext ctx)
Visit a parse tree produced by thenumericLiterallabeled alternative inTypeCalculationParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArithmeticUnary
T visitArithmeticUnary(TypeCalculationParser.ArithmeticUnaryContext ctx)
Visit a parse tree produced by thearithmeticUnarylabeled alternative inTypeCalculationParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryFunctionName
T visitBinaryFunctionName(TypeCalculationParser.BinaryFunctionNameContext ctx)
Visit a parse tree produced byTypeCalculationParser.binaryFunctionName().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-