public class DynamicExpression extends java.lang.Object implements Expression
Expression that delegates to an ExpressionSource
for resolving the actual Expression instance per-invocation at runtime.| Constructor and Description |
|---|
DynamicExpression(java.lang.String key,
ExpressionSource expressionSource) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExpressionString() |
java.lang.Object |
getValue() |
<T> T |
getValue(java.lang.Class<T> desiredResultType) |
java.lang.Object |
getValue(EvaluationContext context) |
<T> T |
getValue(EvaluationContext context,
java.lang.Class<T> desiredResultType) |
java.lang.Object |
getValue(EvaluationContext context,
java.lang.Object rootObject) |
<T> T |
getValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Class<T> desiredResultType) |
java.lang.Object |
getValue(java.lang.Object rootObject) |
<T> T |
getValue(java.lang.Object rootObject,
java.lang.Class<T> desiredResultType) |
java.lang.Class<?> |
getValueType() |
java.lang.Class<?> |
getValueType(EvaluationContext context) |
java.lang.Class<?> |
getValueType(EvaluationContext context,
java.lang.Object rootObject) |
java.lang.Class<?> |
getValueType(java.lang.Object rootObject) |
TypeDescriptor |
getValueTypeDescriptor() |
TypeDescriptor |
getValueTypeDescriptor(EvaluationContext context) |
TypeDescriptor |
getValueTypeDescriptor(EvaluationContext context,
java.lang.Object rootObject) |
TypeDescriptor |
getValueTypeDescriptor(java.lang.Object rootObject) |
boolean |
isWritable(EvaluationContext context) |
boolean |
isWritable(EvaluationContext context,
java.lang.Object rootObject) |
boolean |
isWritable(java.lang.Object rootObject) |
void |
setValue(EvaluationContext context,
java.lang.Object value) |
void |
setValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Object value) |
void |
setValue(java.lang.Object rootObject,
java.lang.Object value) |
public DynamicExpression(java.lang.String key,
ExpressionSource expressionSource)
public java.lang.Object getValue()
throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic java.lang.Object getValue(java.lang.Object rootObject)
throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic <T> T getValue(java.lang.Class<T> desiredResultType)
throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic <T> T getValue(java.lang.Object rootObject,
java.lang.Class<T> desiredResultType)
throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic java.lang.Object getValue(EvaluationContext context) throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic java.lang.Object getValue(EvaluationContext context, java.lang.Object rootObject) throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic <T> T getValue(EvaluationContext context, java.lang.Class<T> desiredResultType) throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic <T> T getValue(EvaluationContext context, java.lang.Object rootObject, java.lang.Class<T> desiredResultType) throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic java.lang.Class<?> getValueType()
throws EvaluationException
getValueType in interface ExpressionEvaluationExceptionpublic java.lang.Class<?> getValueType(java.lang.Object rootObject)
throws EvaluationException
getValueType in interface ExpressionEvaluationExceptionpublic java.lang.Class<?> getValueType(EvaluationContext context) throws EvaluationException
getValueType in interface ExpressionEvaluationExceptionpublic java.lang.Class<?> getValueType(EvaluationContext context, java.lang.Object rootObject) throws EvaluationException
getValueType in interface ExpressionEvaluationExceptionpublic TypeDescriptor getValueTypeDescriptor() throws EvaluationException
getValueTypeDescriptor in interface ExpressionEvaluationExceptionpublic TypeDescriptor getValueTypeDescriptor(java.lang.Object rootObject) throws EvaluationException
getValueTypeDescriptor in interface ExpressionEvaluationExceptionpublic TypeDescriptor getValueTypeDescriptor(EvaluationContext context) throws EvaluationException
getValueTypeDescriptor in interface ExpressionEvaluationExceptionpublic TypeDescriptor getValueTypeDescriptor(EvaluationContext context, java.lang.Object rootObject) throws EvaluationException
getValueTypeDescriptor in interface ExpressionEvaluationExceptionpublic boolean isWritable(EvaluationContext context) throws EvaluationException
isWritable in interface ExpressionEvaluationExceptionpublic boolean isWritable(EvaluationContext context, java.lang.Object rootObject) throws EvaluationException
isWritable in interface ExpressionEvaluationExceptionpublic boolean isWritable(java.lang.Object rootObject)
throws EvaluationException
isWritable in interface ExpressionEvaluationExceptionpublic void setValue(EvaluationContext context, java.lang.Object value) throws EvaluationException
setValue in interface ExpressionEvaluationExceptionpublic void setValue(java.lang.Object rootObject,
java.lang.Object value)
throws EvaluationException
setValue in interface ExpressionEvaluationExceptionpublic void setValue(EvaluationContext context, java.lang.Object rootObject, java.lang.Object value) throws EvaluationException
setValue in interface ExpressionEvaluationExceptionpublic java.lang.String getExpressionString()
getExpressionString in interface Expression