1
1
/*
2
- * Copyright 2002-2009 the original author or authors.
2
+ * Copyright 2002-2010 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
19
19
import org .springframework .core .convert .TypeDescriptor ;
20
20
21
21
/**
22
- * An expression capable of evaluating itself against context objects. Encapsulates the details of a previously parsed
23
- * expression string. Provides a common abstraction for expression evaluation independent of any language like OGNL or
24
- * the Unified EL.
25
- *
22
+ * An expression capable of evaluating itself against context objects.
23
+ * Encapsulates the details of a previously parsed expression string.
24
+ * Provides a common abstraction for expression evaluation independent
25
+ * of any language like OGNL or the Unified EL.
26
+ *
26
27
* @author Keith Donald
27
28
* @author Andy Clement
28
29
* @since 3.0
@@ -31,15 +32,13 @@ public interface Expression {
31
32
32
33
/**
33
34
* Evaluate this expression in the default standard context.
34
- *
35
35
* @return the evaluation result
36
36
* @throws EvaluationException if there is a problem during evaluation
37
37
*/
38
38
Object getValue () throws EvaluationException ;
39
39
40
40
/**
41
41
* Evaluate this expression against the specified root object
42
- *
43
42
* @param rootObject the root object against which properties/etc will be resolved
44
43
* @return the evaluation result
45
44
* @throws EvaluationException if there is a problem during evaluation
@@ -49,7 +48,6 @@ public interface Expression {
49
48
/**
50
49
* Evaluate the expression in the default context. If the result of the evaluation does not match (and
51
50
* cannot be converted to) the expected result type then an exception will be returned.
52
- *
53
51
* @param desiredResultType the class the caller would like the result to be
54
52
* @return the evaluation result
55
53
* @throws EvaluationException if there is a problem during evaluation
@@ -60,7 +58,6 @@ public interface Expression {
60
58
* Evaluate the expression in the default context against the specified root object. If the
61
59
* result of the evaluation does not match (and cannot be converted to) the expected result type
62
60
* then an exception will be returned.
63
- *
64
61
* @param rootObject the root object against which properties/etc will be resolved
65
62
* @param desiredResultType the class the caller would like the result to be
66
63
* @return the evaluation result
@@ -70,7 +67,6 @@ public interface Expression {
70
67
71
68
/**
72
69
* Evaluate this expression in the provided context and return the result of evaluation.
73
- *
74
70
* @param context the context in which to evaluate the expression
75
71
* @return the evaluation result
76
72
* @throws EvaluationException if there is a problem during evaluation
@@ -80,7 +76,6 @@ public interface Expression {
80
76
/**
81
77
* Evaluate this expression in the provided context and return the result of evaluation, but use
82
78
* the supplied root context as an override for any default root object specified in the context.
83
- *
84
79
* @param context the context in which to evaluate the expression
85
80
* @param rootObject the root object against which properties/etc will be resolved
86
81
* @return the evaluation result
@@ -92,7 +87,6 @@ public interface Expression {
92
87
* Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc -
93
88
* the type of the evaluation result is expected to be of a particular class and an exception will be thrown if it
94
89
* is not and cannot be converted to that type.
95
- *
96
90
* @param context the context in which to evaluate the expression
97
91
* @param desiredResultType the class the caller would like the result to be
98
92
* @return the evaluation result
@@ -105,7 +99,6 @@ public interface Expression {
105
99
* the type of the evaluation result is expected to be of a particular class and an exception will be thrown if it
106
100
* is not and cannot be converted to that type. The supplied root object overrides any default specified on the
107
101
* supplied context.
108
- *
109
102
* @param context the context in which to evaluate the expression
110
103
* @param rootObject the root object against which properties/etc will be resolved
111
104
* @param desiredResultType the class the caller would like the result to be
@@ -115,9 +108,8 @@ public interface Expression {
115
108
<T > T getValue (EvaluationContext context , Object rootObject , Class <T > desiredResultType ) throws EvaluationException ;
116
109
117
110
/**
118
- * Returns the most general type that can be passed to the {@link #setValue(EvaluationContext, Object)} method using
119
- * the default context.
120
- *
111
+ * Returns the most general type that can be passed to the {@link #setValue(EvaluationContext, Object)}
112
+ * method using the default context.
121
113
* @return the most general type of value that can be set on this context
122
114
* @throws EvaluationException if there is a problem determining the type
123
115
*/
0 commit comments