public abstract class AbstractGetValueExpression extends java.lang.Object implements Expression
setValue(Object, Object)
is called.
Subclasses must implement getValue(Object)
.Constructor and Description |
---|
AbstractGetValueExpression() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpressionString()
Returns the original string used to create this expression, unmodified.
|
abstract java.lang.Object |
getValue(java.lang.Object context)
Evaluate this expression in the provided context and return the result of evaluation.
|
java.lang.Class<?> |
getValueType(java.lang.Object context)
Returns the most general type that can be passed to the
Expression.setValue(Object, Object) method for the given
context. |
void |
setValue(java.lang.Object context,
java.lang.Object value)
Set this expression in the provided context to the value provided.
|
public abstract java.lang.Object getValue(java.lang.Object context) throws EvaluationException
Expression
getValue
in interface Expression
context
- the context to evaluate this expression inEvaluationException
- an exception occurred during expression evaluationpublic void setValue(java.lang.Object context, java.lang.Object value) throws EvaluationException
Expression
setValue
in interface Expression
context
- the context on which the new value should be setvalue
- the new value to setEvaluationException
- an exception occurred during expression evaluationpublic java.lang.Class<?> getValueType(java.lang.Object context)
Expression
Expression.setValue(Object, Object)
method for the given
context.getValueType
in interface Expression
context
- the context to evaluatenull
if the type
information cannot be determinedpublic java.lang.String getExpressionString()
Expression
getExpressionString
in interface Expression