public class AstBuilder extends MySqlParserBaseVisitor<Expression>
Constructor and Description |
---|
AstBuilder() |
AstBuilder(TiTableInfo tableInfo) |
visitBetweenPredicate, visitBinaryExpressionAtom, visitBitExpressionAtom, visitBitOperator, visitCaseFuncAlternative, visitCaseFunctionCall, visitCharFunctionCall, visitCharsetName, visitCharsetNameBase, visitCollateExpressionAtom, visitCollationName, visitComparisonOperator, visitConvertedDataType, visitCurrentTimestamp, visitDataTypeBase, visitDataTypeFunctionCall, visitDottedId, visitExpressionAtomPredicate, visitExpressions, visitExtractFunctionCall, visitFullColumnNameExpressionAtom, visitFullId, visitFunctionArg, visitFunctionArgs, visitFunctionCallExpressionAtom, visitFunctionNameBase, visitGetFormatFunctionCall, visitHexadecimalLiteral, visitInPredicate, visitIntervalExpressionAtom, visitIntervalType, visitIntervalTypeBase, visitIsExpression, visitIsNullPredicate, visitKeywordsCanBeId, visitLengthOneDimension, visitLengthTwoDimension, visitLevelInWeightListElement, visitLevelWeightList, visitLevelWeightRange, visitLikePredicate, visitLogicalOperator, visitMathOperator, visitNestedExpressionAtom, visitNestedRowExpressionAtom, visitNotExpression, visitNullNotnull, visitPositionFunctionCall, visitPredicateExpression, visitRegexpPredicate, visitScalarFunctionName, visitSimpleFunctionCall, visitSoundsLikePredicate, visitSpecificFunctionCall, visitSubstrFunctionCall, visitTrimFunctionCall, visitUdfFunctionCall, visitUnaryExpressionAtom, visitUnaryOperator, visitValuesFunctionCall, visitWeightFunctionCall
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
public AstBuilder()
public AstBuilder(TiTableInfo tableInfo)
public Expression visitSimpleId(MySqlParser.SimpleIdContext ctx)
MySqlParserBaseVisitor
MySqlParser.simpleId()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSimpleId
in interface MySqlParserVisitor<Expression>
visitSimpleId
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitUid(MySqlParser.UidContext ctx)
MySqlParserBaseVisitor
MySqlParser.uid()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitUid
in interface MySqlParserVisitor<Expression>
visitUid
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitScalarFunctionCall(MySqlParser.ScalarFunctionCallContext ctx)
MySqlParserBaseVisitor
scalarFunctionCall
labeled alternative in MySqlParser.functionCall()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitScalarFunctionCall
in interface MySqlParserVisitor<Expression>
visitScalarFunctionCall
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitFullColumnName(MySqlParser.FullColumnNameContext ctx)
MySqlParserBaseVisitor
MySqlParser.fullColumnName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFullColumnName
in interface MySqlParserVisitor<Expression>
visitFullColumnName
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitDecimalLiteral(MySqlParser.DecimalLiteralContext ctx)
MySqlParserBaseVisitor
MySqlParser.decimalLiteral()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDecimalLiteral
in interface MySqlParserVisitor<Expression>
visitDecimalLiteral
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitBooleanLiteral(MySqlParser.BooleanLiteralContext ctx)
MySqlParserBaseVisitor
MySqlParser.booleanLiteral()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBooleanLiteral
in interface MySqlParserVisitor<Expression>
visitBooleanLiteral
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitStringLiteral(MySqlParser.StringLiteralContext ctx)
MySqlParserBaseVisitor
MySqlParser.stringLiteral()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStringLiteral
in interface MySqlParserVisitor<Expression>
visitStringLiteral
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitConstant(MySqlParser.ConstantContext ctx)
MySqlParserBaseVisitor
MySqlParser.constant()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConstant
in interface MySqlParserVisitor<Expression>
visitConstant
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitConstantExpressionAtom(MySqlParser.ConstantExpressionAtomContext ctx)
MySqlParserBaseVisitor
constantExpressionAtom
labeled alternative in MySqlParser.expressionAtom()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConstantExpressionAtom
in interface MySqlParserVisitor<Expression>
visitConstantExpressionAtom
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitBinaryComparisonPredicate(MySqlParser.BinaryComparisonPredicateContext ctx)
MySqlParserBaseVisitor
binaryComparisonPredicate
labeled alternative in MySqlParser.predicate()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBinaryComparisonPredicate
in interface MySqlParserVisitor<Expression>
visitBinaryComparisonPredicate
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitLogicalExpression(MySqlParser.LogicalExpressionContext ctx)
MySqlParserBaseVisitor
logicalExpression
labeled alternative in MySqlParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLogicalExpression
in interface MySqlParserVisitor<Expression>
visitLogicalExpression
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treepublic Expression visitMathExpressionAtom(MySqlParser.MathExpressionAtomContext ctx)
MySqlParserBaseVisitor
mathExpressionAtom
labeled alternative in MySqlParser.expressionAtom()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMathExpressionAtom
in interface MySqlParserVisitor<Expression>
visitMathExpressionAtom
in class MySqlParserBaseVisitor<Expression>
ctx
- the parse treeCopyright © 2024 PingCAP. All rights reserved.