1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.commons.betwixt.expression;
17
18 /*** <p><code>Expression</code> represents an arbitrary expression on a bean.</p>
19 *
20 * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
21 * @version $Revision: 1.6.2.1 $
22 */
23 public interface Expression {
24
25 /*** Evaluates the expression on the bean with the given context
26 * and returns the result
27 *
28 * @param context evaluate against this <code>Context</code>
29 * @return the value of the expression
30 */
31 public Object evaluate(Context context);
32
33
34
35
36
37
38
39
40 /*** <p>Updates the current bean context with a new String value.
41 * This is typically used when parsing XML and updating a beans value
42 * from XML.<p>
43 *
44 * @param context update this <code>Context</code>
45 * @param newValue the new value for this expression
46 * @deprecated 0.5 use {@link Updater} instead
47 */
48 public void update(Context context, String newValue);
49 }