Search in sources :

Example 1 with Indexer

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

the class InternalSpelExpressionParser method maybeEatIndexer.

private boolean maybeEatIndexer() {
    Token t = peekToken();
    if (!peekToken(TokenKind.LSQUARE, true)) {
        return false;
    }
    SpelNodeImpl expr = eatExpression();
    eatToken(TokenKind.RSQUARE);
    this.constructedNodes.push(new Indexer(toPos(t), expr));
    return true;
}
Also used : SpelNodeImpl(org.springframework.expression.spel.ast.SpelNodeImpl) Indexer(org.springframework.expression.spel.ast.Indexer)

Aggregations

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