Java Code Examples for org.springframework.expression.spel.SpelMessage#NOT_ASSIGNABLE

The following examples show how to use org.springframework.expression.spel.SpelMessage#NOT_ASSIGNABLE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ValueRef.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Override
public void setValue(@Nullable Object newValue) {
	// The exception position '0' isn't right but the overhead of creating
	// instances of this per node (where the node is solely for error reporting)
	// would be unfortunate.
	throw new SpelEvaluationException(0, SpelMessage.NOT_ASSIGNABLE, "null");
}
 
Example 2
Source File: ValueRef.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Override
public void setValue(@Nullable Object newValue) {
	// The exception position '0' isn't right but the overhead of creating
	// instances of this per node (where the node is solely for error reporting)
	// would be unfortunate.
	throw new SpelEvaluationException(0, SpelMessage.NOT_ASSIGNABLE, "null");
}
 
Example 3
Source File: ValueRef.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void setValue(Object newValue) {
	// The exception position '0' isn't right but the overhead of creating
	// instances of this per node (where the node is solely for error reporting)
	// would be unfortunate.
	throw new SpelEvaluationException(0, SpelMessage.NOT_ASSIGNABLE, "null");
}
 
Example 4
Source File: ValueRef.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Override
public void setValue(Object newValue) {
	// The exception position '0' isn't right but the overhead of creating
	// instances of this per node (where the node is solely for error reporting)
	// would be unfortunate.
	throw new SpelEvaluationException(0, SpelMessage.NOT_ASSIGNABLE, "null");
}
 
Example 5
Source File: SpelNodeImpl.java    From spring-analysis-note with MIT License 4 votes vote down vote up
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException {
	throw new SpelEvaluationException(getStartPosition(), SpelMessage.NOT_ASSIGNABLE, toStringAST());
}
 
Example 6
Source File: ValueRef.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public void setValue(@Nullable Object newValue) {
	throw new SpelEvaluationException(
			this.node.getStartPosition(), SpelMessage.NOT_ASSIGNABLE, this.node.toStringAST());
}
 
Example 7
Source File: MethodReference.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public void setValue(@Nullable Object newValue) {
	throw new SpelEvaluationException(0, SpelMessage.NOT_ASSIGNABLE, MethodReference.this.name);
}
 
Example 8
Source File: SpelNodeImpl.java    From java-technology-stack with MIT License 4 votes vote down vote up
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException {
	throw new SpelEvaluationException(getStartPosition(), SpelMessage.NOT_ASSIGNABLE, toStringAST());
}
 
Example 9
Source File: ValueRef.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public void setValue(@Nullable Object newValue) {
	throw new SpelEvaluationException(
			this.node.getStartPosition(), SpelMessage.NOT_ASSIGNABLE, this.node.toStringAST());
}
 
Example 10
Source File: SpelNodeImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException {
	throw new SpelEvaluationException(this.pos, SpelMessage.NOT_ASSIGNABLE, toStringAST());
}
 
Example 11
Source File: ValueRef.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void setValue(Object newValue) {
	throw new SpelEvaluationException(this.node.pos, SpelMessage.NOT_ASSIGNABLE, this.node.toStringAST());
}
 
Example 12
Source File: SpelNodeImpl.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException {
	throw new SpelEvaluationException(this.pos, SpelMessage.NOT_ASSIGNABLE, toStringAST());
}
 
Example 13
Source File: ValueRef.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(Object newValue) {
	throw new SpelEvaluationException(this.node.pos, SpelMessage.NOT_ASSIGNABLE, this.node.toStringAST());
}