Package org.springframework.expression.spel.ast

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


        nextToken(); // elvis has left the building
        SpelNodeImpl valueIfNull = eatExpression();
        if (valueIfNull==null) {
          valueIfNull = new NullLiteral(toPos(t.startpos+1,t.endpos+1));
        }
        return new Elvis(toPos(t),expr,valueIfNull);
      } else if (t.kind==TokenKind.QMARK) { // a?b:c
        if (expr==null) {
          expr = new NullLiteral(toPos(t.startpos-1,t.endpos-1));
        }
        nextToken();
View Full Code Here


        SpelNodeImpl assignedValue = eatLogicalOrExpression();
        return new Assign(toPos(t),expr,assignedValue);
      } else if (t.kind==TokenKind.ELVIS) { // a?:b (a if it isn't null, otherwise b)
        nextToken(); // elvis has left the building
        SpelNodeImpl valueIfNull = eatExpression();
        return new Elvis(toPos(t),expr,valueIfNull);
      } else if (t.kind==TokenKind.QMARK) { // a?b:c
        nextToken();
        SpelNodeImpl ifTrueExprValue = eatExpression()
        eatToken(TokenKind.COLON);
        SpelNodeImpl ifFalseExprValue = eatExpression()
View Full Code Here

        nextToken(); // elvis has left the building
        SpelNodeImpl valueIfNull = eatExpression();
        if (valueIfNull==null) {
          valueIfNull = new NullLiteral(toPos(t.startpos+1,t.endpos+1));
        }
        return new Elvis(toPos(t),expr,valueIfNull);
      } else if (t.kind==TokenKind.QMARK) { // a?b:c
        if (expr==null) {
          expr = new NullLiteral(toPos(t.startpos-1,t.endpos-1));
        }
        nextToken();
View Full Code Here

        nextToken()// elvis has left the building
        SpelNodeImpl valueIfNull = eatExpression();
        if (valueIfNull==null) {
          valueIfNull = new NullLiteral(toPos(t.startPos + 1, t.endPos + 1));
        }
        return new Elvis(toPos(t), expr, valueIfNull);
      }

      if (t.kind == TokenKind.QMARK) {  // a?b:c
        if (expr == null) {
          expr = new NullLiteral(toPos(t.startPos - 1, t.endPos - 1));
View Full Code Here

TOP

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

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.