public final Single_element_path_expressionContext single_element_path_expression() throws RecognitionException { Single_element_path_expressionContext _localctx = new Single_element_path_expressionContext(_ctx, getState()); enterRule(_localctx, 62, RULE_single_element_path_expression); try { enterOuterAlt(_localctx, 1); { setState(422); general_path_start(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
@Override public Expression visitSingle_element_path_expression(JPQLSelectExpressionParser.Single_element_path_expressionContext ctx) { Expression entityLiteral = createEntityTypeLiteral(ctx.general_path_start().getText()); if (entityLiteral != null) { return entityLiteral; } List<PathElementExpression> pathElementExpressions = new ArrayList<>(1); pathElementExpressions.add((PathElementExpression) ctx.general_path_start().accept(this)); return new PathExpression(pathElementExpressions); }
public final Single_element_path_expressionContext single_element_path_expression() throws RecognitionException { Single_element_path_expressionContext _localctx = new Single_element_path_expressionContext(_ctx, getState()); enterRule(_localctx, 62, RULE_single_element_path_expression); try { enterOuterAlt(_localctx, 1); { setState(422); general_path_start(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
public General_path_startContext general_path_start() { return getRuleContext(General_path_startContext.class,0); } public Single_element_path_expressionContext(ParserRuleContext parent, int invokingState) {
@Override public Expression visitSingleJoinElementExpression(SingleJoinElementExpressionContext ctx) { return ctx.single_element_path_expression().accept(this); }
public General_path_startContext general_path_start() { return getRuleContext(General_path_startContext.class,0); } public Single_element_path_expressionContext(ParserRuleContext parent, int invokingState) {
@Override public Expression visitArrayExpressionSingleElementPathIndex(ArrayExpressionSingleElementPathIndexContext ctx) { return new ArrayExpression((PropertyExpression) ctx.simple_path_element().accept(this), ctx.single_element_path_expression().accept(this)); }
@Override public Expression visitArrayExpressionSingleElementPathIndex(ArrayExpressionSingleElementPathIndexContext ctx) { return new ArrayExpression((PropertyExpression) ctx.simple_path_element().accept(this), ctx.single_element_path_expression().accept(this)); }
@Override public Expression visitSingle_element_path_expression(JPQLSelectExpressionParser.Single_element_path_expressionContext ctx) { Expression entityLiteral = createEntityTypeLiteral(ctx.general_path_start().getText()); if (entityLiteral != null) { return entityLiteral; } List<PathElementExpression> pathElementExpressions = new ArrayList<>(1); pathElementExpressions.add((PathElementExpression) ctx.general_path_start().accept(this)); return new PathExpression(pathElementExpressions); }
@Override public Expression visitSingleJoinElementExpression(SingleJoinElementExpressionContext ctx) { return ctx.single_element_path_expression().accept(this); }