Search in sources :

Example 1 with Projection

use of org.springframework.expression.spel.ast.Projection in project spring-framework by spring-projects.

the class InternalSpelExpressionParser method maybeEatProjection.

//projection: PROJECT^ expression RCURLY!;
private boolean maybeEatProjection(boolean nullSafeNavigation) {
    Token t = peekToken();
    if (!peekToken(TokenKind.PROJECT, true)) {
        return false;
    }
    SpelNodeImpl expr = eatExpression();
    eatToken(TokenKind.RSQUARE);
    this.constructedNodes.push(new Projection(nullSafeNavigation, toPos(t), expr));
    return true;
}
Also used : SpelNodeImpl(org.springframework.expression.spel.ast.SpelNodeImpl) Projection(org.springframework.expression.spel.ast.Projection)

Aggregations

Projection (org.springframework.expression.spel.ast.Projection)1 SpelNodeImpl (org.springframework.expression.spel.ast.SpelNodeImpl)1