public interface Expression
| Modifier and Type | Method and Description |
|---|---|
String |
getExpressionString()
Returns the original string used to create this expression, unmodified.
|
Object |
getValue(Object context)
Evaluate this expression in the provided context and return the result of evaluation.
|
Class |
getValueType(Object context)
Returns the most general type that can be passed to the
setValue(Object, Object) method for the given
context. |
void |
setValue(Object context,
Object value)
Set this expression in the provided context to the value provided.
|
Object getValue(Object context) throws EvaluationException
context - the context to evaluate this expression inEvaluationException - an exception occurred during expression evaluationvoid setValue(Object context, Object value) throws EvaluationException
context - the context on which the new value should be setvalue - the new value to setEvaluationException - an exception occurred during expression evaluationClass getValueType(Object context) throws EvaluationException
setValue(Object, Object) method for the given
context.context - the context to evaluatenull if the type
information cannot be determinedEvaluationException - an exception occurred during expression evaluationString getExpressionString()