Java Code Examples for org.springframework.expression.EvaluationException

Following code examples demonstrate how to use org.springframework.expression.EvaluationExceptionfrom spring-framework. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.springframework.expression.EvaluationExceptionand various code implementation of this class.

	public TypedValue getValueInternal(ExpressionState state) throws EvaluationException {
		TypedValue newValue = this.children[1].getValueInternal(state);
		getChild(0).setValue(state, newValue.getValue());
		return newValue;
	} 


	public TypedValue getValueInternal(ExpressionState state) throws EvaluationException {
		if (this.value == null) {
			StringBuilder sb = new StringBuilder();
			for (int i = 0; i < getChildCount(); i++) {
				Object value = this.children[i].getValueInternal(state).getValue();
				if (i > 0 && (value == null || !value.toString().startsWith("$"))) {
					sb.append(".");
				}
				sb.append(value);
			}
			this.value = new TypedValue(sb.toString());
		}
		return this.value;
	} 

Advertisement
Javadoc
Represent an exception that occurs during expression evaluation. @author Andy Clement @since 3.0
Advertisement