|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Expression
An expression capable of evaluating itself against context objects. Encapsulates the details of a previously parsed expression string. Provides a common abstraction for expression evaluation independent of any language like OGNL or the Unified EL.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Object getValue(Object context)
throws EvaluationException
context - the context to evaluate this expression in
EvaluationException - an exception occurred during expression evaluation
void setValue(Object context,
Object value)
throws EvaluationException
context - the context on which the new value should be setvalue - the new value to set
EvaluationException - an exception occurred during expression evaluation
Class getValueType(Object context)
throws EvaluationException
setValue(Object, Object) method for the given
context.
context - the context to evaluate
null if the type
information cannot be determined
EvaluationException - an exception occurred during expression evaluationString getExpressionString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||