private Arithmetic_expressionContext arithmetic_expression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); Arithmetic_expressionContext _localctx = new Arithmetic_expressionContext(_ctx, _parentState); Arithmetic_expressionContext _prevctx = _localctx; int _startState = 74; _localctx = new ArithmeticExpressionPlusMinusContext(new Arithmetic_expressionContext(_parentctx, _parentState)); pushNewRecursionContext(_localctx, _startState, RULE_arithmetic_expression); setState(475);
@Override public Expression visitArithmeticExpressionPlusMinus(JPQLSelectExpressionParser.ArithmeticExpressionPlusMinusContext ctx) { ArithmeticOperator op = ArithmeticOperator.fromSymbol(ctx.op.getText()); if (op == null) { throw new IllegalStateException("Unexpected arithmetic operator symbol [" + ctx.op.getText() + "]"); } return new ArithmeticExpression( ctx.arithmetic_expression().accept(this), ctx.arithmetic_term().accept(this), op); }
private Arithmetic_expressionContext arithmetic_expression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); Arithmetic_expressionContext _localctx = new Arithmetic_expressionContext(_ctx, _parentState); Arithmetic_expressionContext _prevctx = _localctx; int _startState = 74; _localctx = new ArithmeticExpressionPlusMinusContext(new Arithmetic_expressionContext(_parentctx, _parentState)); pushNewRecursionContext(_localctx, _startState, RULE_arithmetic_expression); setState(475);
@Override public Expression visitArithmeticPrimaryParanthesis(JPQLSelectExpressionParser.ArithmeticPrimaryParanthesisContext ctx) { return ctx.arithmetic_expression().accept(this); }
@Override public Expression visitArithmeticPrimaryParanthesis(JPQLSelectExpressionParser.ArithmeticPrimaryParanthesisContext ctx) { return ctx.arithmetic_expression().accept(this); }
@Override public Expression visitArithmeticExpressionPlusMinus(JPQLSelectExpressionParser.ArithmeticExpressionPlusMinusContext ctx) { ArithmeticOperator op = ArithmeticOperator.fromSymbol(ctx.op.getText()); if (op == null) { throw new IllegalStateException("Unexpected arithmetic operator symbol [" + ctx.op.getText() + "]"); } return new ArithmeticExpression( ctx.arithmetic_expression().accept(this), ctx.arithmetic_term().accept(this), op); }