|
37 | 37 |
|
38 | 38 | /**
|
39 | 39 | * A function reference is of the form "#someFunction(a,b,c)". Functions may be defined
|
40 |
| - * in the context prior to the expression being evaluated or within the expression itself |
41 |
| - * using a lambda function definition. For example: Lambda function definition in an |
42 |
| - * expression: "(#max = {|x,y|$x>$y?$x:$y};max(2,3))" Calling context defined function: |
43 |
| - * "#isEven(37)". Functions may also be static java methods, registered in the context |
44 |
| - * prior to invocation of the expression. |
| 40 | + * in the context prior to the expression being evaluated. Functions may also be static |
| 41 | + * Java methods, registered in the context prior to invocation of the expression. |
45 | 42 | *
|
46 |
| - * <p>Functions are very simplistic, the arguments are not part of the definition |
| 43 | + * <p>Functions are very simplistic. The arguments are not part of the definition |
47 | 44 | * (right now), so the names must be unique.
|
48 | 45 | *
|
49 | 46 | * @author Andy Clement
|
@@ -73,7 +70,7 @@ public TypedValue getValueInternal(ExpressionState state) throws EvaluationExcep
|
73 | 70 | throw new SpelEvaluationException(getStartPosition(), SpelMessage.FUNCTION_NOT_DEFINED, this.name);
|
74 | 71 | }
|
75 | 72 | if (!(value.getValue() instanceof Method)) {
|
76 |
| - // Two possibilities: a lambda function or a Java static method registered as a function |
| 73 | + // Possibly a static Java method registered as a function |
77 | 74 | throw new SpelEvaluationException(
|
78 | 75 | SpelMessage.FUNCTION_REFERENCE_CANNOT_BE_INVOKED, this.name, value.getClass());
|
79 | 76 | }
|
|
0 commit comments