public override void ExitTotalledNumericLessThanComparisonSpecificationExpression(RuleSetParser.TotalledNumericLessThanComparisonSpecificationExpressionContext ctx)
        {
            ArithmeticExpression left = new TotalFromJsonPathExpression(jsonPathParser, ctx.jsonpath_expr().GetText());
            ArithmeticExpression right = (ctx.right_arithmetic_expr() != null) ? getArithmeticExpression(ctx.right_arithmetic_expr())
                : getArithmeticExpression(ctx.numeric_expr());

            specifications.Push(new LessThan(jsonPathParser, left, right));
        }
        protected String getValueExpression(RuleSetParser.Value_exprContext value_expr)
        {
            if (value_expr.jsonpath_expr() != null)
            {
                return getJsonPathExpression(value_expr.jsonpath_expr());
            }

            return value_expr.GetText();
        }
 public override void ExitTotalledNumericGreaterThanComparisonSpecificationExpression(RuleSetParser.TotalledNumericGreaterThanComparisonSpecificationExpressionContext context)
 {
     var left = new TotalFromJsonPathExpression(jsonPathParser, context.jsonpath_expr().GetText());
     ArithmeticExpression right = (context.right_arithmetic_expr() != null) ? getArithmeticExpression(context.right_arithmetic_expr())
         : getArithmeticExpression(context.numeric_expr());
 }