Package org.springframework.binding.expression

Examples of org.springframework.binding.expression.ParserException


  }

  private void assertNotDelimited(String expressionString) {
    if ((expressionString.startsWith("#{") && expressionString.endsWith("}"))
        || (expressionString.startsWith("${") && expressionString.endsWith("}"))) {
      throw new ParserException(expressionString, "This expression '" + expressionString
          + "' being parsed is expected be an 'eval' EL expression string. "
          + "Do not attempt to enclose such expression strings in #{} or ${} delimiters. "
          + "If you need to parse a template that mixes literal text with evaluatable blocks, "
          + "set the 'template' parser context attribute to true.", null);
    }
View Full Code Here


    }
  }

  private void assertHasText(String expressionString) {
    if (expressionString.length() == 0) {
      throw new ParserException(expressionString, "The EL eval expression to parse must have text", null);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.binding.expression.ParserException

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.