public class QueryListenerImpl extends QueryBaseListener
Modifier and Type | Field and Description |
---|---|
static String |
AND |
static String |
EQ |
static String |
IN |
static String |
OR |
static String |
RANGE |
String |
TAB |
Constructor and Description |
---|
QueryListenerImpl(String queryStr) |
Modifier and Type | Method and Description |
---|---|
void |
enterComparison(QueryParser.ComparisonContext ctx)
Enter a parse tree produced by the
Comparison
labeled alternative in QueryParser.objectPredicate() . |
void |
enterExpr(QueryParser.ExprContext ctx)
Enter a parse tree produced by the
Expr
labeled alternative in QueryParser.expression() . |
void |
enterExpValues(QueryParser.ExpValuesContext ctx)
Enter a parse tree produced by the
ExpValues
labeled alternative in QueryParser.expression() . |
void |
enterInComp(QueryParser.InCompContext ctx)
Enter a parse tree produced by the
InComp
labeled alternative in QueryParser.objectPredicate() . |
void |
enterLogicPredicate(QueryParser.LogicPredicateContext ctx)
Enter a parse tree produced by the
LogicPredicate
labeled alternative in QueryParser.predicate() . |
void |
exitComparison(QueryParser.ComparisonContext ctx)
Exit a parse tree produced by the
Comparison
labeled alternative in QueryParser.objectPredicate() . |
void |
exitExpr(QueryParser.ExprContext ctx)
Exit a parse tree produced by the
Expr
labeled alternative in QueryParser.expression() . |
void |
exitExpValues(QueryParser.ExpValuesContext ctx)
Exit a parse tree produced by the
ExpValues
labeled alternative in QueryParser.expression() . |
void |
exitFunctionExp(QueryParser.FunctionExpContext ctx)
Exit a parse tree produced by the
FunctionExp
labeled alternative in QueryParser.expression() . |
void |
exitInComp(QueryParser.InCompContext ctx)
Exit a parse tree produced by the
InComp
labeled alternative in QueryParser.objectPredicate() . |
void |
exitLogicPredicate(QueryParser.LogicPredicateContext ctx)
Exit a parse tree produced by the
LogicPredicate
labeled alternative in QueryParser.predicate() . |
void |
exitStrToBytesFuncExpr(QueryParser.StrToBytesFuncExprContext ctx)
Exit a parse tree produced by the
StrToBytesFuncExpr
labeled alternative in QueryParser.functionalExpression() . |
Stack<Predicate> |
getPredicateStack() |
boolean |
isTableScan() |
void |
walkTree() |
void |
walTree(QueryParser.ScriptContext tree) |
enterAll, enterArrayEmpty, enterArrays, enterArrayValue, enterAssignObject, enterAssignStats, enterBinaryOperator, enterBooleans, enterComparisonOperator, enterCountExpr, enterEveryRule, enterExistExpr, enterExpParen, enterExpressionPredicate, enterFunctionExp, enterIdentifier, enterIDS, enterInsertStats, enterKeys, enterLimitPhrase, enterLogicalOperator, enterLowerExpr, enterNotPredicate, enterNulls, enterNumbers, enterObjectAssigns, enterObjectEmpty, enterObjects, enterObjPredicate, enterParenPredicate, enterReplaceStats, enterScript, enterSelectStats, enterStrings, enterStrToBytesFuncExpr, enterSubstrExpr, enterUnaryOperator, enterUpperExpr, enterWhereStatement, exitAll, exitArrayEmpty, exitArrays, exitArrayValue, exitAssignObject, exitAssignStats, exitBinaryOperator, exitBooleans, exitComparisonOperator, exitCountExpr, exitEveryRule, exitExistExpr, exitExpParen, exitExpressionPredicate, exitIdentifier, exitIDS, exitInsertStats, exitKeys, exitLimitPhrase, exitLogicalOperator, exitLowerExpr, exitNotPredicate, exitNulls, exitNumbers, exitObjectAssigns, exitObjectEmpty, exitObjects, exitObjPredicate, exitParenPredicate, exitReplaceStats, exitScript, exitSelectStats, exitStrings, exitSubstrExpr, exitUnaryOperator, exitUpperExpr, exitWhereStatement, visitErrorNode, visitTerminal
public final String TAB
public static final String RANGE
public static final String AND
public static final String OR
public static final String IN
public static final String EQ
public QueryListenerImpl(String queryStr)
public void walkTree()
public void walTree(QueryParser.ScriptContext tree)
public void enterExpr(@NotNull QueryParser.ExprContext ctx)
QueryBaseListener
Expr
labeled alternative in QueryParser.expression()
.
The default implementation does nothing.
enterExpr
in interface QueryListener
enterExpr
in class QueryBaseListener
ctx
- the parse treepublic void exitExpr(@NotNull QueryParser.ExprContext ctx)
QueryBaseListener
Expr
labeled alternative in QueryParser.expression()
.
The default implementation does nothing.
exitExpr
in interface QueryListener
exitExpr
in class QueryBaseListener
ctx
- the parse treepublic void enterComparison(@NotNull QueryParser.ComparisonContext ctx)
QueryBaseListener
Comparison
labeled alternative in QueryParser.objectPredicate()
.
The default implementation does nothing.
enterComparison
in interface QueryListener
enterComparison
in class QueryBaseListener
ctx
- the parse treepublic void exitComparison(@NotNull QueryParser.ComparisonContext ctx)
QueryBaseListener
Comparison
labeled alternative in QueryParser.objectPredicate()
.
The default implementation does nothing.
exitComparison
in interface QueryListener
exitComparison
in class QueryBaseListener
ctx
- the parse treepublic void enterExpValues(@NotNull QueryParser.ExpValuesContext ctx)
QueryBaseListener
ExpValues
labeled alternative in QueryParser.expression()
.
The default implementation does nothing.
enterExpValues
in interface QueryListener
enterExpValues
in class QueryBaseListener
ctx
- the parse treepublic void exitExpValues(@NotNull QueryParser.ExpValuesContext ctx)
QueryBaseListener
ExpValues
labeled alternative in QueryParser.expression()
.
The default implementation does nothing.
exitExpValues
in interface QueryListener
exitExpValues
in class QueryBaseListener
ctx
- the parse treepublic void exitStrToBytesFuncExpr(QueryParser.StrToBytesFuncExprContext ctx)
QueryBaseListener
StrToBytesFuncExpr
labeled alternative in QueryParser.functionalExpression()
.
The default implementation does nothing.
exitStrToBytesFuncExpr
in interface QueryListener
exitStrToBytesFuncExpr
in class QueryBaseListener
ctx
- the parse treepublic void exitFunctionExp(QueryParser.FunctionExpContext ctx)
QueryBaseListener
FunctionExp
labeled alternative in QueryParser.expression()
.
The default implementation does nothing.
exitFunctionExp
in interface QueryListener
exitFunctionExp
in class QueryBaseListener
ctx
- the parse treepublic boolean isTableScan()
public void enterLogicPredicate(@NotNull QueryParser.LogicPredicateContext ctx)
QueryBaseListener
LogicPredicate
labeled alternative in QueryParser.predicate()
.
The default implementation does nothing.
enterLogicPredicate
in interface QueryListener
enterLogicPredicate
in class QueryBaseListener
ctx
- the parse treepublic void exitLogicPredicate(@NotNull QueryParser.LogicPredicateContext ctx)
QueryBaseListener
LogicPredicate
labeled alternative in QueryParser.predicate()
.
The default implementation does nothing.
exitLogicPredicate
in interface QueryListener
exitLogicPredicate
in class QueryBaseListener
ctx
- the parse treepublic void enterInComp(@NotNull QueryParser.InCompContext ctx)
QueryBaseListener
InComp
labeled alternative in QueryParser.objectPredicate()
.
The default implementation does nothing.
enterInComp
in interface QueryListener
enterInComp
in class QueryBaseListener
ctx
- the parse treepublic void exitInComp(@NotNull QueryParser.InCompContext ctx)
QueryBaseListener
InComp
labeled alternative in QueryParser.objectPredicate()
.
The default implementation does nothing.
exitInComp
in interface QueryListener
exitInComp
in class QueryBaseListener
ctx
- the parse treeCopyright © 2016. All rights reserved.