com.espertech.esper.epl.parse
Class EPLTreeWalker

java.lang.Object
  extended by org.antlr.runtime.BaseRecognizer
      extended by org.antlr.runtime.tree.TreeParser
          extended by com.espertech.esper.epl.generated.EsperEPL2Ast
              extended by com.espertech.esper.epl.parse.EPLTreeWalker

public class EPLTreeWalker
extends EsperEPL2Ast

Called during the walks of a EPL expression AST tree as specified in the grammar file. Constructs filter and view specifications etc.


Field Summary
 
Fields inherited from class com.espertech.esper.epl.generated.EsperEPL2Ast
ALL, AND_EXPR, ARRAY_EXPR, ARRAY_PARAM_LIST, AS, ASC, AVEDEV, AVG, BAND, BAND_ASSIGN, BETWEEN, BNOT, BOOL_TYPE, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, BY, CASE, CASE2, CAST, CAST_EXPR, CLASS_IDENT, COALESCE, COLON, COMMA, CONCAT, COUNT, CREATE, CREATE_VARIABLE_EXPR, CREATE_WINDOW_EXPR, CREATE_WINDOW_SELECT_EXPR, CURRENT_TIMESTAMP, DATABASE_JOIN_EXPR, DAY_PART, DBFROM_CLAUSE, DBSELECT_EXPR, DBWHERE_CLAUSE, DEC, DELETE, DESC, DISTINCT, DIV, DIV_ASSIGN, DOT, DOUBLE_TYPE, ELSE, END, EOF, EPL_EXPR, EQUAL, EQUALS, ESC, ESCAPE, EVAL_AND_EXPR, EVAL_BITWISE_EXPR, EVAL_EQUALS_EXPR, EVAL_IDENT, EVAL_NOTEQUALS_EXPR, EVAL_OR_EXPR, EVENT_FILTER_BETWEEN, EVENT_FILTER_EXPR, EVENT_FILTER_IDENT, EVENT_FILTER_IN, EVENT_FILTER_NOT_BETWEEN, EVENT_FILTER_NOT_IN, EVENT_FILTER_NOT_RANGE, EVENT_FILTER_PARAM, EVENT_FILTER_RANGE, EVENT_LIMIT_EXPR, EVENT_PROP_DYNAMIC_INDEXED, EVENT_PROP_DYNAMIC_MAPPED, EVENT_PROP_DYNAMIC_SIMPLE, EVENT_PROP_EXPR, EVENT_PROP_INDEXED, EVENT_PROP_MAPPED, EVENT_PROP_SIMPLE, EVENTS, EVERY_EXPR, EXISTS, EXISTS_SUBSELECT_EXPR, EXPONENT, FIRST, FLOAT_SUFFIX, FLOAT_TYPE, FOLLOW_AND_EXPR_in_patternOp2463, FOLLOW_arithmeticExpr_in_valueExpr1323, FOLLOW_ARRAY_EXPR_in_arrayExpr2114, FOLLOW_ARRAY_PARAM_LIST_in_parameter2986, FOLLOW_arrayExpr_in_valueExpr1382, FOLLOW_atomicExpr_in_exprChoice2341, FOLLOW_AVEDEV_in_builtinFunc1969, FOLLOW_AVG_in_builtinFunc1893, FOLLOW_BAND_in_arithmeticExpr2216, FOLLOW_BETWEEN_in_betweenExpr1747, FOLLOW_betweenExpr_in_valueExpr1367, FOLLOW_BOOL_TYPE_in_constant3407, FOLLOW_BOR_in_arithmeticExpr2231, FOLLOW_builtinFunc_in_valueExpr1343, FOLLOW_BXOR_in_arithmeticExpr2246, FOLLOW_CASE_in_caseExpr1578, FOLLOW_CASE2_in_caseExpr1594, FOLLOW_caseExpr_in_valueExpr1356, FOLLOW_CAST_in_builtinFunc2065, FOLLOW_CLASS_IDENT_in_builtinFunc2048, FOLLOW_CLASS_IDENT_in_builtinFunc2051, FOLLOW_CLASS_IDENT_in_builtinFunc2069, FOLLOW_CLASS_IDENT_in_createWindowExpr321, FOLLOW_CLASS_IDENT_in_eventFilterExpr2532, FOLLOW_CLASS_IDENT_in_libFunc2293, FOLLOW_CLASS_IDENT_in_methodJoinExpression862, FOLLOW_COALESCE_in_builtinFunc1988, FOLLOW_CONCAT_in_arithmeticExpr2262, FOLLOW_constant_in_filterAtom2811, FOLLOW_constant_in_filterParamComparator2638, FOLLOW_constant_in_filterParamComparator2645, FOLLOW_constant_in_filterParamComparator2671, FOLLOW_constant_in_filterParamComparator2678, FOLLOW_constant_in_filterParamComparator2704, FOLLOW_constant_in_filterParamComparator2711, FOLLOW_constant_in_filterParamComparator2738, FOLLOW_constant_in_filterParamComparator2745, FOLLOW_constant_in_filterParamComparator2766, FOLLOW_constant_in_filterParamComparator2773, FOLLOW_constant_in_filterParamComparator2787, FOLLOW_constant_in_filterParamComparator2794, FOLLOW_constant_in_parameter2989, FOLLOW_constant_in_singleParameter3036, FOLLOW_constant_in_valueExpr1311, FOLLOW_COUNT_in_builtinFunc1911, FOLLOW_CREATE_VARIABLE_EXPR_in_createVariableExpr340, FOLLOW_CREATE_WINDOW_EXPR_in_createWindowExpr307, FOLLOW_CREATE_WINDOW_SELECT_EXPR_in_createSelectionList367, FOLLOW_createSelectionList_in_createWindowExpr317, FOLLOW_createSelectionListElement_in_createSelectionList369, FOLLOW_createSelectionListElement_in_createSelectionList372, FOLLOW_createVariableExpr_in_eplExpressionRule116, FOLLOW_createWindowExpr_in_eplExpressionRule112, FOLLOW_CURRENT_TIMESTAMP_in_builtinFunc2094, FOLLOW_DATABASE_JOIN_EXPR_in_databaseJoinExpression825, FOLLOW_databaseJoinExpression_in_streamExpression766, FOLLOW_DAY_PART_in_dayPart3252, FOLLOW_dayPart_in_timePeriodDef3168, FOLLOW_DISTINCT_in_builtinFunc1878, FOLLOW_DISTINCT_in_builtinFunc1896, FOLLOW_DISTINCT_in_builtinFunc1915, FOLLOW_DISTINCT_in_builtinFunc1936, FOLLOW_DISTINCT_in_builtinFunc1954, FOLLOW_DISTINCT_in_builtinFunc1972, FOLLOW_DISTINCT_in_libFunc2300, FOLLOW_DIV_in_arithmeticExpr2170, FOLLOW_DOUBLE_TYPE_in_constant3375, FOLLOW_EPL_EXPR_in_startEPLExpressionRule89, FOLLOW_eplExpressionRule_in_startEPLExpressionRule91, FOLLOW_EQUALS_in_filterParamComparator2575, FOLLOW_EVAL_AND_EXPR_in_evalExprChoice1232, FOLLOW_EVAL_EQUALS_EXPR_in_evalExprChoice1253, FOLLOW_EVAL_NOTEQUALS_EXPR_in_evalExprChoice1269, FOLLOW_EVAL_OR_EXPR_in_evalExprChoice1211, FOLLOW_evalExprChoice_in_valueExpr1338, FOLLOW_EVENT_FILTER_BETWEEN_in_filterParamComparator2763, FOLLOW_EVENT_FILTER_EXPR_in_eventFilterExpr2527, FOLLOW_EVENT_FILTER_IDENT_in_filterIdentifier2828, FOLLOW_EVENT_FILTER_IN_in_filterParamComparator2695, FOLLOW_EVENT_FILTER_NOT_BETWEEN_in_filterParamComparator2784, FOLLOW_EVENT_FILTER_NOT_IN_in_filterParamComparator2729, FOLLOW_EVENT_FILTER_NOT_RANGE_in_filterParamComparator2662, FOLLOW_EVENT_FILTER_PARAM_in_filterParam2554, FOLLOW_EVENT_FILTER_RANGE_in_filterParamComparator2629, FOLLOW_EVENT_LIMIT_EXPR_in_outputLimitExpr1042, FOLLOW_EVENT_PROP_DYNAMIC_INDEXED_in_eventPropertyAtomic2919, FOLLOW_EVENT_PROP_DYNAMIC_MAPPED_in_eventPropertyAtomic2930, FOLLOW_EVENT_PROP_DYNAMIC_SIMPLE_in_eventPropertyAtomic2910, FOLLOW_EVENT_PROP_EXPR_in_eventPropertyExpr2849, FOLLOW_EVENT_PROP_INDEXED_in_eventPropertyAtomic2882, FOLLOW_EVENT_PROP_MAPPED_in_eventPropertyAtomic2893, FOLLOW_EVENT_PROP_SIMPLE_in_eventPropertyAtomic2873, FOLLOW_eventFilterExpr_in_atomicExpr2489, FOLLOW_eventFilterExpr_in_onExpr142, FOLLOW_eventFilterExpr_in_streamExpression758, FOLLOW_eventFilterExpr_in_subSelectFilterExpr1549, FOLLOW_eventPropertyAtomic_in_eventPropertyExpr2851, FOLLOW_eventPropertyAtomic_in_eventPropertyExpr2854, FOLLOW_eventPropertyExpr_in_builtinFunc2014, FOLLOW_eventPropertyExpr_in_builtinFunc2032, FOLLOW_eventPropertyExpr_in_builtinFunc2083, FOLLOW_eventPropertyExpr_in_createSelectionListElement404, FOLLOW_eventPropertyExpr_in_filterIdentifier2832, FOLLOW_eventPropertyExpr_in_outerJoinIdent682, FOLLOW_eventPropertyExpr_in_outerJoinIdent684, FOLLOW_eventPropertyExpr_in_outerJoinIdent687, FOLLOW_eventPropertyExpr_in_outerJoinIdent689, FOLLOW_eventPropertyExpr_in_outerJoinIdent705, FOLLOW_eventPropertyExpr_in_outerJoinIdent707, FOLLOW_eventPropertyExpr_in_outerJoinIdent710, FOLLOW_eventPropertyExpr_in_outerJoinIdent712, FOLLOW_eventPropertyExpr_in_outerJoinIdent728, FOLLOW_eventPropertyExpr_in_outerJoinIdent730, FOLLOW_eventPropertyExpr_in_outerJoinIdent733, FOLLOW_eventPropertyExpr_in_outerJoinIdent735, FOLLOW_eventPropertyExpr_in_parameter2998, FOLLOW_eventPropertyExpr_in_valueExpr1330, FOLLOW_EVERY_EXPR_in_exprChoice2356, FOLLOW_EXISTS_in_builtinFunc2081, FOLLOW_EXISTS_SUBSELECT_EXPR_in_subSelectExistsExpr1437, FOLLOW_exprChoice_in_exprChoice2358, FOLLOW_exprChoice_in_exprChoice2374, FOLLOW_exprChoice_in_exprChoice2390, FOLLOW_exprChoice_in_patternInclusionExpression808, FOLLOW_exprChoice_in_patternOp2419, FOLLOW_exprChoice_in_patternOp2421, FOLLOW_exprChoice_in_patternOp2424, FOLLOW_exprChoice_in_patternOp2442, FOLLOW_exprChoice_in_patternOp2444, FOLLOW_exprChoice_in_patternOp2447, FOLLOW_exprChoice_in_patternOp2465, FOLLOW_exprChoice_in_patternOp2467, FOLLOW_exprChoice_in_patternOp2470, FOLLOW_exprChoice_in_startPatternExpressionRule2327, FOLLOW_filterAtom_in_filterParamComparator2577, FOLLOW_filterAtom_in_filterParamComparator2586, FOLLOW_filterAtom_in_filterParamComparator2595, FOLLOW_filterAtom_in_filterParamComparator2604, FOLLOW_filterAtom_in_filterParamComparator2613, FOLLOW_filterAtom_in_filterParamComparator2622, FOLLOW_filterIdentifier_in_filterAtom2817, FOLLOW_filterIdentifier_in_filterParamComparator2641, FOLLOW_filterIdentifier_in_filterParamComparator2648, FOLLOW_filterIdentifier_in_filterParamComparator2674, FOLLOW_filterIdentifier_in_filterParamComparator2681, FOLLOW_filterIdentifier_in_filterParamComparator2707, FOLLOW_filterIdentifier_in_filterParamComparator2714, FOLLOW_filterIdentifier_in_filterParamComparator2741, FOLLOW_filterIdentifier_in_filterParamComparator2748, FOLLOW_filterIdentifier_in_filterParamComparator2769, FOLLOW_filterIdentifier_in_filterParamComparator2776, FOLLOW_filterIdentifier_in_filterParamComparator2790, FOLLOW_filterIdentifier_in_filterParamComparator2797, FOLLOW_FLOAT_TYPE_in_constant3366, FOLLOW_FOLLOWED_BY_EXPR_in_patternOp2417, FOLLOW_fromClause_in_selectExpr436, FOLLOW_FULL_OUTERJOIN_EXPR_in_outerJoinIdent726, FOLLOW_GE_in_filterParamComparator2620, FOLLOW_GE_in_relationalExpr1190, FOLLOW_GROUP_BY_EXPR_in_groupByClause947, FOLLOW_groupByClause_in_onSelectExpr223, FOLLOW_groupByClause_in_selectExpr448, FOLLOW_GT_in_filterParamComparator2611, FOLLOW_GT_in_relationalExpr1159, FOLLOW_GUARD_EXPR_in_exprChoice2388, FOLLOW_HAVING_EXPR_in_havingClause1022, FOLLOW_havingClause_in_onSelectExpr228, FOLLOW_havingClause_in_selectExpr455, FOLLOW_HOUR_PART_in_hourPart3268, FOLLOW_hourPart_in_timePeriodDef3171, FOLLOW_hourPart_in_timePeriodDef3193, FOLLOW_IDENT_in_atomicExpr2503, FOLLOW_IDENT_in_atomicExpr2505, FOLLOW_IDENT_in_createSelectionListElement407, FOLLOW_IDENT_in_createVariableExpr342, FOLLOW_IDENT_in_createVariableExpr344, FOLLOW_IDENT_in_createWindowExpr309, FOLLOW_IDENT_in_databaseJoinExpression827, FOLLOW_IDENT_in_eventFilterExpr2529, FOLLOW_IDENT_in_eventPropertyAtomic2875, FOLLOW_IDENT_in_eventPropertyAtomic2884, FOLLOW_IDENT_in_eventPropertyAtomic2895, FOLLOW_IDENT_in_eventPropertyAtomic2912, FOLLOW_IDENT_in_eventPropertyAtomic2921, FOLLOW_IDENT_in_eventPropertyAtomic2932, FOLLOW_IDENT_in_exprChoice2392, FOLLOW_IDENT_in_exprChoice2394, FOLLOW_IDENT_in_filterIdentifier2830, FOLLOW_IDENT_in_insertIntoExpr497, FOLLOW_IDENT_in_insertIntoExprCol521, FOLLOW_IDENT_in_insertIntoExprCol524, FOLLOW_IDENT_in_libFunc2297, FOLLOW_IDENT_in_methodJoinExpression860, FOLLOW_IDENT_in_onExpr149, FOLLOW_IDENT_in_onExprFrom286, FOLLOW_IDENT_in_onExprFrom289, FOLLOW_IDENT_in_onSetAssignment270, FOLLOW_IDENT_in_outputLimitExpr1058, FOLLOW_IDENT_in_outputLimitExpr1091, FOLLOW_IDENT_in_outputLimitExpr1123, FOLLOW_IDENT_in_selectionListElement628, FOLLOW_IDENT_in_selectionListElement644, FOLLOW_IDENT_in_selectionListElement647, FOLLOW_IDENT_in_streamExpression779, FOLLOW_IDENT_in_subQueryExpr1525, FOLLOW_IDENT_in_subSelectFilterExpr1557, FOLLOW_IDENT_in_viewExpr901, FOLLOW_IDENT_in_viewExpr903, FOLLOW_IN_RANGE_in_inExpr1681, FOLLOW_IN_SET_in_inExpr1617, FOLLOW_IN_SUBSELECT_EXPR_in_subSelectInExpr1458, FOLLOW_IN_SUBSELECT_QUERY_EXPR_in_subSelectInQueryExpr1497, FOLLOW_inExpr_in_valueExpr1361, FOLLOW_INSERTINTO_EXPR_in_insertIntoExpr486, FOLLOW_INSERTINTO_EXPRCOL_in_insertIntoExprCol519, FOLLOW_insertIntoExpr_in_onSelectExpr209, FOLLOW_insertIntoExpr_in_selectExpr425, FOLLOW_insertIntoExprCol_in_insertIntoExpr500, FOLLOW_INSTANCEOF_in_builtinFunc2044, FOLLOW_INT_TYPE_in_constant3348, FOLLOW_LAST_in_singleParameter3015, FOLLOW_LAST_OPERATOR_in_lastOperator3116, FOLLOW_lastOperator_in_singleParameter3025, FOLLOW_LE_in_filterParamComparator2602, FOLLOW_LE_in_relationalExpr1175, FOLLOW_LEFT_OUTERJOIN_EXPR_in_outerJoinIdent680, FOLLOW_LIB_FUNCTION_in_libFunc2290, FOLLOW_libFunc_in_valueExpr1351, FOLLOW_LIKE_in_likeExpr1791, FOLLOW_likeExpr_in_valueExpr1372, FOLLOW_LONG_TYPE_in_constant3357, FOLLOW_LT_in_filterParamComparator2593, FOLLOW_LT_in_relationalExpr1143, FOLLOW_LW_in_singleParameter3020, FOLLOW_MEDIAN_in_builtinFunc1933, FOLLOW_METHOD_JOIN_EXPR_in_methodJoinExpression858, FOLLOW_methodJoinExpression_in_streamExpression770, FOLLOW_MILLISECOND_PART_in_millisecondPart3316, FOLLOW_millisecondPart_in_timePeriodDef3186, FOLLOW_millisecondPart_in_timePeriodDef3206, FOLLOW_millisecondPart_in_timePeriodDef3221, FOLLOW_millisecondPart_in_timePeriodDef3231, FOLLOW_millisecondPart_in_timePeriodDef3238, FOLLOW_MIN_LIMIT_EXPR_in_outputLimitExpr1107, FOLLOW_MINUS_in_arithmeticExpr2154, FOLLOW_MINUTE_PART_in_minutePart3284, FOLLOW_minutePart_in_timePeriodDef3176, FOLLOW_minutePart_in_timePeriodDef3196, FOLLOW_minutePart_in_timePeriodDef3213, FOLLOW_MOD_in_arithmeticExpr2201, FOLLOW_NOT_BETWEEN_in_betweenExpr1764, FOLLOW_NOT_EQUAL_in_filterParamComparator2584, FOLLOW_NOT_EXPR_in_evalExprChoice1285, FOLLOW_NOT_EXPR_in_exprChoice2372, FOLLOW_NOT_IN_RANGE_in_inExpr1710, FOLLOW_NOT_IN_SET_in_inExpr1649, FOLLOW_NOT_IN_SUBSELECT_EXPR_in_subSelectInExpr1474, FOLLOW_NOT_LIKE_in_likeExpr1811, FOLLOW_NOT_REGEXP_in_regExpExpr1852, FOLLOW_NULL_TYPE_in_constant3420, FOLLOW_NUM_INT_in_builtinFunc2030, FOLLOW_NUM_INT_in_eventPropertyAtomic2886, FOLLOW_NUM_INT_in_eventPropertyAtomic2923, FOLLOW_NUM_INT_in_lastOperator3118, FOLLOW_NUM_INT_in_numericParameterList3079, FOLLOW_NUM_INT_in_numericParameterList3089, FOLLOW_NUM_INT_in_numericParameterList3091, FOLLOW_NUM_INT_in_numericParameterList3102, FOLLOW_NUM_INT_in_singleParameter3047, FOLLOW_NUM_INT_in_singleParameter3049, FOLLOW_NUM_INT_in_singleParameter3060, FOLLOW_NUM_INT_in_weekDayOperator3135, FOLLOW_number_in_dayPart3254, FOLLOW_number_in_hourPart3270, FOLLOW_number_in_millisecondPart3318, FOLLOW_number_in_minutePart3286, FOLLOW_number_in_outputLimitExpr1056, FOLLOW_number_in_outputLimitExpr1089, FOLLOW_number_in_outputLimitExpr1121, FOLLOW_number_in_secondPart3302, FOLLOW_NUMERIC_PARAM_FREQUENCE_in_numericParameterList3100, FOLLOW_NUMERIC_PARAM_FREQUENCY_in_singleParameter3058, FOLLOW_NUMERIC_PARAM_LIST_in_parameter2972, FOLLOW_NUMERIC_PARAM_RANGE_in_numericParameterList3087, FOLLOW_NUMERIC_PARAM_RANGE_in_singleParameter3045, FOLLOW_numericParameterList_in_parameter2975, FOLLOW_OBSERVER_EXPR_in_atomicExpr2501, FOLLOW_ON_DELETE_EXPR_in_onDeleteExpr184, FOLLOW_ON_EXPR_FROM_in_onExprFrom284, FOLLOW_ON_EXPR_in_onExpr139, FOLLOW_ON_SELECT_EXPR_in_onSelectExpr206, FOLLOW_ON_SET_EXPR_in_onSetExpr250, FOLLOW_onDeleteExpr_in_onExpr156, FOLLOW_onExpr_in_eplExpressionRule120, FOLLOW_onExprFrom_in_onDeleteExpr186, FOLLOW_onExprFrom_in_onSelectExpr215, FOLLOW_onSelectExpr_in_onExpr160, FOLLOW_onSetAssignment_in_onSetExpr252, FOLLOW_onSetAssignment_in_onSetExpr255, FOLLOW_onSetExpr_in_onExpr164, FOLLOW_OR_EXPR_in_patternOp2440, FOLLOW_ORDER_BY_EXPR_in_orderByClause970, FOLLOW_ORDER_ELEMENT_EXPR_in_orderByElement995, FOLLOW_orderByClause_in_onSelectExpr233, FOLLOW_orderByClause_in_selectExpr469, FOLLOW_orderByElement_in_orderByClause972, FOLLOW_orderByElement_in_orderByClause975, FOLLOW_outerJoin_in_fromClause577, FOLLOW_outerJoinIdent_in_outerJoin666, FOLLOW_outputLimitExpr_in_selectExpr462, FOLLOW_parameter_in_atomicExpr2507, FOLLOW_parameter_in_exprChoice2396, FOLLOW_parameter_in_viewExpr906, FOLLOW_PATTERN_INCL_EXPR_in_patternInclusionExpression804, FOLLOW_patternInclusionExpression_in_onExpr146, FOLLOW_patternInclusionExpression_in_streamExpression762, FOLLOW_patternOp_in_exprChoice2346, FOLLOW_PLUS_in_arithmeticExpr2138, FOLLOW_PREVIOUS_in_builtinFunc2010, FOLLOW_PRIOR_in_builtinFunc2026, FOLLOW_REGEXP_in_regExpExpr1837, FOLLOW_regExpExpr_in_valueExpr1377, FOLLOW_relationalExpr_in_evalExprChoice1298, FOLLOW_RIGHT_OUTERJOIN_EXPR_in_outerJoinIdent703, FOLLOW_SEC_LIMIT_EXPR_in_outputLimitExpr1075, FOLLOW_SECOND_PART_in_secondPart3300, FOLLOW_secondPart_in_timePeriodDef3181, FOLLOW_secondPart_in_timePeriodDef3201, FOLLOW_secondPart_in_timePeriodDef3216, FOLLOW_secondPart_in_timePeriodDef3228, FOLLOW_selectClause_in_selectExpr431, FOLLOW_selectExpr_in_eplExpressionRule108, FOLLOW_SELECTION_ELEMENT_EXPR_in_createSelectionListElement402, FOLLOW_SELECTION_ELEMENT_EXPR_in_selectionListElement623, FOLLOW_SELECTION_EXPR_in_selectClause542, FOLLOW_SELECTION_STREAM_in_selectionListElement642, FOLLOW_selectionList_in_onSelectExpr213, FOLLOW_selectionList_in_selectClause557, FOLLOW_selectionListElement_in_selectionList594, FOLLOW_selectionListElement_in_selectionList597, FOLLOW_selectionListElement_in_subQueryExpr1515, FOLLOW_set_in_databaseJoinExpression829, FOLLOW_set_in_databaseJoinExpression837, FOLLOW_set_in_eventPropertyAtomic2897, FOLLOW_set_in_eventPropertyAtomic2934, FOLLOW_set_in_filterParamComparator2631, FOLLOW_set_in_filterParamComparator2651, FOLLOW_set_in_filterParamComparator2664, FOLLOW_set_in_filterParamComparator2684, FOLLOW_set_in_filterParamComparator2697, FOLLOW_set_in_filterParamComparator2718, FOLLOW_set_in_filterParamComparator2731, FOLLOW_set_in_filterParamComparator2752, FOLLOW_set_in_inExpr1621, FOLLOW_set_in_inExpr1634, FOLLOW_set_in_inExpr1653, FOLLOW_set_in_inExpr1666, FOLLOW_set_in_inExpr1685, FOLLOW_set_in_inExpr1695, FOLLOW_set_in_inExpr1714, FOLLOW_set_in_inExpr1724, FOLLOW_set_in_insertIntoExpr488, FOLLOW_set_in_number0, FOLLOW_set_in_orderByElement999, FOLLOW_set_in_outputLimitExpr1044, FOLLOW_set_in_outputLimitExpr1077, FOLLOW_set_in_outputLimitExpr1109, FOLLOW_set_in_selectClause544, FOLLOW_singleParameter_in_parameter2964, FOLLOW_singleParameter_in_synpred12959, FOLLOW_STAR_in_arithmeticExpr2185, FOLLOW_STAR_in_singleParameter3010, FOLLOW_STDDEV_in_builtinFunc1951, FOLLOW_STREAM_EXPR_in_streamExpression755, FOLLOW_STREAM_EXPR_in_subSelectFilterExpr1547, FOLLOW_streamExpression_in_fromClause571, FOLLOW_streamExpression_in_fromClause574, FOLLOW_STRING_TYPE_in_constant3391, FOLLOW_subQueryExpr_in_subSelectExistsExpr1439, FOLLOW_subQueryExpr_in_subSelectInQueryExpr1499, FOLLOW_subQueryExpr_in_subSelectRowExpr1418, FOLLOW_SUBSELECT_EXPR_in_subSelectRowExpr1416, FOLLOW_subSelectExistsExpr_in_valueExpr1400, FOLLOW_subSelectFilterExpr_in_subQueryExpr1517, FOLLOW_subSelectInExpr_in_valueExpr1387, FOLLOW_subSelectInQueryExpr_in_subSelectInExpr1462, FOLLOW_subSelectInQueryExpr_in_subSelectInExpr1478, FOLLOW_subSelectRowExpr_in_valueExpr1393, FOLLOW_SUBSTITUTION_in_substitution3332, FOLLOW_substitution_in_valueExpr1317, FOLLOW_SUM_in_builtinFunc1875, FOLLOW_time_period_in_singleParameter3067, FOLLOW_TIME_PERIOD_in_time_period3151, FOLLOW_timePeriodDef_in_time_period3153, FOLLOW_UNIDIRECTIONAL_in_streamExpression784, FOLLOW_valueExpr_in_arithmeticExpr2140, FOLLOW_valueExpr_in_arithmeticExpr2142, FOLLOW_valueExpr_in_arithmeticExpr2156, FOLLOW_valueExpr_in_arithmeticExpr2158, FOLLOW_valueExpr_in_arithmeticExpr2172, FOLLOW_valueExpr_in_arithmeticExpr2174, FOLLOW_valueExpr_in_arithmeticExpr2187, FOLLOW_valueExpr_in_arithmeticExpr2189, FOLLOW_valueExpr_in_arithmeticExpr2203, FOLLOW_valueExpr_in_arithmeticExpr2205, FOLLOW_valueExpr_in_arithmeticExpr2218, FOLLOW_valueExpr_in_arithmeticExpr2220, FOLLOW_valueExpr_in_arithmeticExpr2233, FOLLOW_valueExpr_in_arithmeticExpr2235, FOLLOW_valueExpr_in_arithmeticExpr2248, FOLLOW_valueExpr_in_arithmeticExpr2250, FOLLOW_valueExpr_in_arithmeticExpr2264, FOLLOW_valueExpr_in_arithmeticExpr2266, FOLLOW_valueExpr_in_arithmeticExpr2269, FOLLOW_valueExpr_in_arrayExpr2117, FOLLOW_valueExpr_in_betweenExpr1749, FOLLOW_valueExpr_in_betweenExpr1751, FOLLOW_valueExpr_in_betweenExpr1753, FOLLOW_valueExpr_in_betweenExpr1766, FOLLOW_valueExpr_in_betweenExpr1768, FOLLOW_valueExpr_in_betweenExpr1771, FOLLOW_valueExpr_in_builtinFunc1882, FOLLOW_valueExpr_in_builtinFunc1900, FOLLOW_valueExpr_in_builtinFunc1919, FOLLOW_valueExpr_in_builtinFunc1940, FOLLOW_valueExpr_in_builtinFunc1958, FOLLOW_valueExpr_in_builtinFunc1976, FOLLOW_valueExpr_in_builtinFunc1990, FOLLOW_valueExpr_in_builtinFunc1992, FOLLOW_valueExpr_in_builtinFunc1995, FOLLOW_valueExpr_in_builtinFunc2012, FOLLOW_valueExpr_in_builtinFunc2046, FOLLOW_valueExpr_in_builtinFunc2067, FOLLOW_valueExpr_in_caseExpr1581, FOLLOW_valueExpr_in_caseExpr1597, FOLLOW_valueExpr_in_createVariableExpr347, FOLLOW_valueExpr_in_evalExprChoice1213, FOLLOW_valueExpr_in_evalExprChoice1215, FOLLOW_valueExpr_in_evalExprChoice1218, FOLLOW_valueExpr_in_evalExprChoice1234, FOLLOW_valueExpr_in_evalExprChoice1236, FOLLOW_valueExpr_in_evalExprChoice1239, FOLLOW_valueExpr_in_evalExprChoice1255, FOLLOW_valueExpr_in_evalExprChoice1257, FOLLOW_valueExpr_in_evalExprChoice1271, FOLLOW_valueExpr_in_evalExprChoice1273, FOLLOW_valueExpr_in_evalExprChoice1287, FOLLOW_valueExpr_in_eventFilterExpr2535, FOLLOW_valueExpr_in_filterParam2556, FOLLOW_valueExpr_in_filterParam2559, FOLLOW_valueExpr_in_groupByClause949, FOLLOW_valueExpr_in_groupByClause952, FOLLOW_valueExpr_in_havingClause1024, FOLLOW_valueExpr_in_inExpr1619, FOLLOW_valueExpr_in_inExpr1627, FOLLOW_valueExpr_in_inExpr1630, FOLLOW_valueExpr_in_inExpr1651, FOLLOW_valueExpr_in_inExpr1659, FOLLOW_valueExpr_in_inExpr1662, FOLLOW_valueExpr_in_inExpr1683, FOLLOW_valueExpr_in_inExpr1691, FOLLOW_valueExpr_in_inExpr1693, FOLLOW_valueExpr_in_inExpr1712, FOLLOW_valueExpr_in_inExpr1720, FOLLOW_valueExpr_in_inExpr1722, FOLLOW_valueExpr_in_libFunc2305, FOLLOW_valueExpr_in_likeExpr1793, FOLLOW_valueExpr_in_likeExpr1795, FOLLOW_valueExpr_in_likeExpr1798, FOLLOW_valueExpr_in_likeExpr1813, FOLLOW_valueExpr_in_likeExpr1815, FOLLOW_valueExpr_in_likeExpr1818, FOLLOW_valueExpr_in_methodJoinExpression865, FOLLOW_valueExpr_in_onSetAssignment272, FOLLOW_valueExpr_in_orderByElement997, FOLLOW_valueExpr_in_regExpExpr1839, FOLLOW_valueExpr_in_regExpExpr1841, FOLLOW_valueExpr_in_regExpExpr1854, FOLLOW_valueExpr_in_regExpExpr1856, FOLLOW_valueExpr_in_relationalExpr1145, FOLLOW_valueExpr_in_relationalExpr1147, FOLLOW_valueExpr_in_relationalExpr1161, FOLLOW_valueExpr_in_relationalExpr1163, FOLLOW_valueExpr_in_relationalExpr1177, FOLLOW_valueExpr_in_relationalExpr1179, FOLLOW_valueExpr_in_relationalExpr1192, FOLLOW_valueExpr_in_relationalExpr1194, FOLLOW_valueExpr_in_selectionListElement625, FOLLOW_valueExpr_in_subSelectInExpr1460, FOLLOW_valueExpr_in_subSelectInExpr1476, FOLLOW_valueExpr_in_whereClause929, FOLLOW_VIEW_EXPR_in_viewExpr899, FOLLOW_viewExpr_in_subQueryExpr1520, FOLLOW_viewExpr_in_viewListExpr879, FOLLOW_viewExpr_in_viewListExpr882, FOLLOW_viewListExpr_in_createWindowExpr312, FOLLOW_viewListExpr_in_streamExpression774, FOLLOW_viewListExpr_in_subSelectFilterExpr1552, FOLLOW_WEEKDAY_OPERATOR_in_weekDayOperator3133, FOLLOW_weekDayOperator_in_singleParameter3030, FOLLOW_WHERE_EXPR_in_whereClause927, FOLLOW_whereClause_in_onDeleteExpr189, FOLLOW_whereClause_in_onSelectExpr218, FOLLOW_whereClause_in_selectExpr441, FOLLOW_whereClause_in_subQueryExpr1530, FOLLOW_WILDCARD_SELECT_in_createSelectionListElement392, FOLLOW_WILDCARD_SELECT_in_selectionListElement613, FOLLOWED_BY, FOLLOWED_BY_EXPR, FROM, FULL, FULL_OUTERJOIN_EXPR, GE, GROUP, GROUP_BY_EXPR, GT, GUARD_EXPR, HAVING, HAVING_EXPR, HEX_DIGIT, HOUR_PART, IDENT, IN_RANGE, IN_SET, IN_SUBSELECT_EXPR, IN_SUBSELECT_QUERY_EXPR, INC, INSERT, INSERTINTO_EXPR, INSERTINTO_EXPRCOL, INSERTINTO_STREAM_NAME, INSTANCEOF, INT_TYPE, INTO, IRSTREAM, IS, ISTREAM, JOIN, LAND, LAST, LAST_OPERATOR, LBRACK, LCURLY, LE, LEFT, LEFT_OUTERJOIN_EXPR, LIB_FUNCTION, LIKE, LNOT, LONG_TYPE, LOR, LPAREN, LT, LW, MAX, MEDIAN, METADATASQL, METHOD_JOIN_EXPR, MILLISECOND_PART, MIN, MIN_LIMIT_EXPR, MINUS, MINUS_ASSIGN, MINUTE_PART, MINUTES, ML_COMMENT, MOD, MOD_ASSIGN, NOT_BETWEEN, NOT_EQUAL, NOT_EXPR, NOT_IN_RANGE, NOT_IN_SET, NOT_IN_SUBSELECT_EXPR, NOT_LIKE, NOT_REGEXP, NULL_TYPE, NUM_DOUBLE, NUM_FLOAT, NUM_INT, NUM_LONG, NUMERIC_PARAM_FREQUENCE, NUMERIC_PARAM_FREQUENCY, NUMERIC_PARAM_LIST, NUMERIC_PARAM_RANGE, OBSERVER_EXPR, ON, ON_DELETE_EXPR, ON_EXPR, ON_EXPR_FROM, ON_SELECT_EXPR, ON_SET_EXPR, OR_EXPR, ORDER, ORDER_BY_EXPR, ORDER_ELEMENT_EXPR, OUTER, OUTERJOIN_EXPR, OUTPUT, PATTERN, PATTERN_INCL_EXPR, PLUS, PLUS_ASSIGN, PREVIOUS, PRIOR, QUESTION, QUOTED_STRING_LITERAL, RBRACK, RCURLY, REGEXP, RIGHT, RIGHT_OUTERJOIN_EXPR, RPAREN, RSTREAM, SEC_LIMIT_EXPR, SECOND_PART, SECONDS, SELECT, SELECTION_ELEMENT_EXPR, SELECTION_EXPR, SELECTION_STREAM, SEMI, SET, SL, SL_ASSIGN, SL_COMMENT, SNAPSHOT, SQL, SQL_NE, SR, SR_ASSIGN, STAR, STAR_ASSIGN, STDDEV, STREAM_EXPR, STRING_LITERAL, STRING_TYPE, SUBSELECT_EXPR, SUBSTITUTION, SUM, THEN, TIME_PERIOD, tokenNames, UNARY_MINUS, UNIDIRECTIONAL, VARIABLE, VIEW_EXPR, WEEKDAY, WEEKDAY_OPERATOR, WHEN, WHERE, WHERE_EXPR, WILDCARD_SELECT, WINDOW, WS
 
Fields inherited from class org.antlr.runtime.tree.TreeParser
DOWN, input, UP
 
Fields inherited from class org.antlr.runtime.BaseRecognizer
_fsp, backtracking, DEFAULT_TOKEN_CHANNEL, errorRecovery, failed, following, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, lastErrorIndex, MEMO_RULE_FAILED, MEMO_RULE_FAILED_I, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, ruleMemo
 
Constructor Summary
EPLTreeWalker(org.antlr.runtime.tree.TreeNodeStream input, EngineImportService engineImportService, VariableService variableService, long engineTime, SelectClauseStreamSelectorEnum defaultStreamSelector)
          Ctor.
 
Method Summary
protected  void end()
          End processing of the AST tree, check that expression nodes found their homes.
protected  void endPattern()
          End processing of the AST tree for stand-alone pattern expressions.
 StatementSpecRaw getStatementSpec()
          Returns statement specification.
protected  void leaveNode(org.antlr.runtime.tree.Tree node)
          Leave AST node and process it's type and child nodes.
protected  void pushStmtContext()
          Pushes a statement into the stack, creating a new empty statement to fill in.
protected  void setIsPatternWalk(boolean isPatternWalk)
          Set to indicate that we are walking a pattern.
 
Methods inherited from class com.espertech.esper.epl.generated.EsperEPL2Ast
arithmeticExpr, arrayExpr, atomicExpr, betweenExpr, builtinFunc, caseExpr, constant, createSelectionList, createSelectionListElement, createVariableExpr, createWindowExpr, databaseJoinExpression, dayPart, eplExpressionRule, evalExprChoice, eventFilterExpr, eventPropertyAtomic, eventPropertyExpr, exprChoice, filterAtom, filterIdentifier, filterParam, filterParamComparator, fromClause, getGrammarFileName, getTokenNames, groupByClause, havingClause, hourPart, inExpr, insertIntoExpr, insertIntoExprCol, lastOperator, libFunc, likeExpr, methodJoinExpression, millisecondPart, minutePart, mismatch, number, numericParameterList, onDeleteExpr, onExpr, onExprFrom, onSelectExpr, onSetAssignment, onSetExpr, orderByClause, orderByElement, outerJoin, outerJoinIdent, outputLimitExpr, parameter, patternInclusionExpression, patternOp, recover, recoverFromMismatchedElement, recoverFromMismatchedSet, recoverFromMismatchedToken, regExpExpr, relationalExpr, secondPart, selectClause, selectExpr, selectionList, selectionListElement, singleParameter, startEPLExpressionRule, startPatternExpressionRule, streamExpression, subQueryExpr, subSelectExistsExpr, subSelectFilterExpr, subSelectInExpr, subSelectInQueryExpr, subSelectRowExpr, substitution, synpred1_fragment, synpred1, time_period, timePeriodDef, valueExpr, viewExpr, viewListExpr, weekDayOperator, whereClause
 
Methods inherited from class org.antlr.runtime.tree.TreeParser
getErrorHeader, getErrorMessage, getTreeNodeStream, matchAny, reset, setTreeNodeStream, traceIn, traceOut
 
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, getBacktrackingLevel, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, memoize, pushFollow, reportError, toStrings, traceIn, traceOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPLTreeWalker

public EPLTreeWalker(org.antlr.runtime.tree.TreeNodeStream input,
                     EngineImportService engineImportService,
                     VariableService variableService,
                     long engineTime,
                     SelectClauseStreamSelectorEnum defaultStreamSelector)
Ctor.

Parameters:
engineImportService - is required to resolve lib-calls into static methods or configured aggregation functions
variableService - for variable access
input - is the tree nodes to walk
engineTime - is the current engine time
defaultStreamSelector - - the configuration for which insert or remove streams (or both) to produce
Method Detail

pushStmtContext

protected void pushStmtContext()
Pushes a statement into the stack, creating a new empty statement to fill in. The leave node method for lookup statements pops from the stack.

Overrides:
pushStmtContext in class EsperEPL2Ast

getStatementSpec

public StatementSpecRaw getStatementSpec()
Returns statement specification.

Returns:
statement spec.

setIsPatternWalk

protected void setIsPatternWalk(boolean isPatternWalk)
Set to indicate that we are walking a pattern.

Overrides:
setIsPatternWalk in class EsperEPL2Ast
Parameters:
isPatternWalk - is true if walking a pattern

leaveNode

protected void leaveNode(org.antlr.runtime.tree.Tree node)
                  throws ASTWalkException
Leave AST node and process it's type and child nodes.

Overrides:
leaveNode in class EsperEPL2Ast
Parameters:
node - is the node to complete
Throws:
ASTWalkException - if the node tree walk operation failed

endPattern

protected void endPattern()
                   throws ASTWalkException
End processing of the AST tree for stand-alone pattern expressions.

Overrides:
endPattern in class EsperEPL2Ast
Throws:
ASTWalkException - is the walk failed

end

protected void end()
            throws ASTWalkException
End processing of the AST tree, check that expression nodes found their homes.

Overrides:
end in class EsperEPL2Ast
Throws:
ASTWalkException - is the walk failed

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com