Package org.springframework.expression.spel

Examples of org.springframework.expression.spel.SpelParseException


    // Now there may or may not be an exponent

    // is it a long ?
    if (isChar('L', 'l')) {
      if (isReal) { // 3.4L - not allowed
        throw new InternalParseException(new SpelParseException(this.expressionString,
            start, SpelMessage.REAL_CANNOT_BE_LONG));
      }
      pushIntToken(subarray(start, endOfNumber), true, start, endOfNumber);
      this.pos++;
    }
View Full Code Here


  }

  private void pushHexIntToken(char[] data, boolean isLong, int start, int end) {
    if (data.length == 0) {
      if (isLong) {
        throw new InternalParseException(new SpelParseException(this.expressionString,
            start, SpelMessage.NOT_A_LONG, this.expressionString.substring(start,
                end + 1)));
      }
      else {
        throw new InternalParseException(new SpelParseException(this.expressionString,
            start, SpelMessage.NOT_AN_INTEGER, this.expressionString.substring(
                start, end)));
      }
    }
    if (isLong) {
View Full Code Here

      this.tokenStreamLength = this.tokenStream.size();
      this.tokenStreamPointer = 0;
      this.constructedNodes.clear();
      SpelNodeImpl ast = eatExpression();
      if (moreTokens()) {
        throw new SpelParseException(peekToken().startPos, SpelMessage.MORE_INPUT, toString(nextToken()));
      }
      Assert.isTrue(this.constructedNodes.isEmpty());
      return new SpelExpression(expressionString, ast, this.configuration);
    }
    catch (InternalParseException ex) {
View Full Code Here

    return args.toArray(new SpelNodeImpl[args.size()]);
  }

  private void eatConstructorArgs(List<SpelNodeImpl> accumulatedArguments) {
    if (!peekToken(TokenKind.LPAREN)) {
      throw new InternalParseException(new SpelParseException(this.expressionString,positionOf(peekToken()),SpelMessage.MISSING_CONSTRUCTOR_ARGS));
    }
    consumeArguments(accumulatedArguments);
    eatToken(TokenKind.RPAREN);
  }
View Full Code Here

    }
    return this.tokenStream.get(this.tokenStreamPointer);
  }

  private void raiseInternalException(int pos, SpelMessage message, Object... inserts) {
    throw new InternalParseException(new SpelParseException(this.expressionString, pos, message, inserts));
  }
View Full Code Here

TOP

Related Classes of org.springframework.expression.spel.SpelParseException

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.