public class QueryBaseVisitor<T> implements QueryVisitor<T>
This class provides an empty implementation of
, which can be extended to create a visitor which only needs to handle a subset of the available methods.interface QueryVisitor
interface QueryVisitor
public T visitStart(com.weedow.spring.data.search.expression.parser.QueryParser.StartContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$start()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$start()
public T visitOrExpression(com.weedow.spring.data.search.expression.parser.QueryParser.OrExpressionContext ctx)
Visit a parse tree produced by the orExpression
labeled alternative in QueryParser#expression.
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treepublic T visitAndExpression(com.weedow.spring.data.search.expression.parser.QueryParser.AndExpressionContext ctx)
Visit a parse tree produced by the andExpression
labeled alternative in QueryParser#expression.
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treepublic T visitParenthesizedExpression(com.weedow.spring.data.search.expression.parser.QueryParser.ParenthesizedExpressionContext ctx)
Visit a parse tree produced by the parenthesizedExpression
labeled alternative in QueryParser#expression.
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treepublic T visitNegativeExpression(com.weedow.spring.data.search.expression.parser.QueryParser.NegativeExpressionContext ctx)
Visit a parse tree produced by the negativeExpression
labeled alternative in QueryParser#expression.
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treepublic T visitSimpleExpression(com.weedow.spring.data.search.expression.parser.QueryParser.SimpleExpressionContext ctx)
Visit a parse tree produced by the simpleExpression
labeled alternative in QueryParser#expression.
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treepublic T visitSimple_expression(com.weedow.spring.data.search.expression.parser.QueryParser.Simple_expressionContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$simple_expression()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$simple_expression()
public T visitField_path(com.weedow.spring.data.search.expression.parser.QueryParser.Field_pathContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$field_path()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$field_path()
public T visitValue(com.weedow.spring.data.search.expression.parser.QueryParser.ValueContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$value()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$value()
public T visitBoolean_value(com.weedow.spring.data.search.expression.parser.QueryParser.Boolean_valueContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$boolean_value()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$boolean_value()
public T visitNumber_value(com.weedow.spring.data.search.expression.parser.QueryParser.Number_valueContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$number_value()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$number_value()
public T visitString_value(com.weedow.spring.data.search.expression.parser.QueryParser.String_valueContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$string_value()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$string_value()
public T visitComparison_expression(com.weedow.spring.data.search.expression.parser.QueryParser.Comparison_expressionContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$comparison_expression()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$comparison_expression()
public T visitBetween_expression(com.weedow.spring.data.search.expression.parser.QueryParser.Between_expressionContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$between_expression()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$between_expression()
public T visitIn_expression(com.weedow.spring.data.search.expression.parser.QueryParser.In_expressionContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$in_expression()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$in_expression()
public T visitMatches_expression(com.weedow.spring.data.search.expression.parser.QueryParser.Matches_expressionContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$matches_expression()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$matches_expression()
public T visitImatches_expression(com.weedow.spring.data.search.expression.parser.QueryParser.Imatches_expressionContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$imatches_expression()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$imatches_expression()
public T visitNull_comparison_expression(com.weedow.spring.data.search.expression.parser.QueryParser.Null_comparison_expressionContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$null_comparison_expression()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$null_comparison_expression()
public T visitComparison_operator(com.weedow.spring.data.search.expression.parser.QueryParser.Comparison_operatorContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$comparison_operator()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$comparison_operator()
public T visitBoolean_comparison_operator(com.weedow.spring.data.search.expression.parser.QueryParser.Boolean_comparison_operatorContext ctx)
Visit a parse tree produced by
. com.weedow.spring.data.search.expression.parser.QueryParser$boolean_comparison_operator()
The default implementation returns the result of calling #visitChildren
on ctx
.
ctx
- the parse treecom.weedow.spring.data.search.expression.parser.QueryParser$boolean_comparison_operator()