1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.springmodules.validation.util.fel;
18
19 /**
20 * Represents a single argument function. The function evaluates the argument and outputs
21 * the evaluation result.
22 *
23 * @author Uri Boness
24 */
25 public interface Function {
26
27 /**
28 * Evaluate the function on the given argument and return the evaluation result.
29 *
30 * @param argument The argument to the function.
31 * @return The evaluation result
32 * @throws FelEvaluationException thrown when the evaluation fails.
33 */
34 Object evaluate(Object argument) throws FelEvaluationException;
35
36 }