Package org.springframework.expression.spel.ast

Examples of org.springframework.expression.spel.ast.Selection


    }
    nextToken();
    SpelNodeImpl expr = eatExpression();
    eatToken(TokenKind.RSQUARE);
    if (t.kind==TokenKind.SELECT_FIRST) {     
      constructedNodes.push(new Selection(nullSafeNavigation,Selection.FIRST,toPos(t),expr));
    } else if (t.kind==TokenKind.SELECT_LAST) {
      constructedNodes.push(new Selection(nullSafeNavigation,Selection.LAST,toPos(t),expr));
    } else {
      constructedNodes.push(new Selection(nullSafeNavigation,Selection.ALL,toPos(t),expr));
    }
    return true;
  }
View Full Code Here


    }
    nextToken();
    SpelNodeImpl expr = eatExpression();
    eatToken(TokenKind.RSQUARE);
    if (t.kind==TokenKind.SELECT_FIRST) {     
      constructedNodes.push(new Selection(nullSafeNavigation,Selection.FIRST,toPos(t),expr));
    } else if (t.kind==TokenKind.SELECT_LAST) {
      constructedNodes.push(new Selection(nullSafeNavigation,Selection.LAST,toPos(t),expr));
    } else {
      constructedNodes.push(new Selection(nullSafeNavigation,Selection.ALL,toPos(t),expr));
    }
    return true;
  }
View Full Code Here

    }
    nextToken();
    SpelNodeImpl expr = eatExpression();
    eatToken(TokenKind.RSQUARE);
    if (t.kind==TokenKind.SELECT_FIRST) {     
      constructedNodes.push(new Selection(nullSafeNavigation,Selection.FIRST,toPos(t),expr));
    } else if (t.kind==TokenKind.SELECT_LAST) {
      constructedNodes.push(new Selection(nullSafeNavigation,Selection.LAST,toPos(t),expr));
    } else {
      constructedNodes.push(new Selection(nullSafeNavigation,Selection.ALL,toPos(t),expr));
    }
    return true;
  }
View Full Code Here

    if (expr == null) {
      raiseInternalException(toPos(t), SpelMessage.MISSING_SELECTION_EXPRESSION);
    }
    eatToken(TokenKind.RSQUARE);
    if (t.kind == TokenKind.SELECT_FIRST) {
      this.constructedNodes.push(new Selection(nullSafeNavigation, Selection.FIRST, toPos(t), expr));
    }
    else if (t.kind == TokenKind.SELECT_LAST) {
      this.constructedNodes.push(new Selection(nullSafeNavigation, Selection.LAST, toPos(t), expr));
    }
    else {
      this.constructedNodes.push(new Selection(nullSafeNavigation, Selection.ALL, toPos(t), expr));
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of org.springframework.expression.spel.ast.Selection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.