V - - The expected value type.public class ValueExpression<V> extends java.lang.Object implements Expression
Expression
interface that represents an immutable value.
It is used as value holder in the context of expression evaluation.| Constructor and Description |
|---|
ValueExpression(V value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExpressionString() |
V |
getValue() |
<T> T |
getValue(java.lang.Class<T> desiredResultType) |
V |
getValue(EvaluationContext context) |
<T> T |
getValue(EvaluationContext context,
java.lang.Class<T> desiredResultType) |
V |
getValue(EvaluationContext context,
java.lang.Object rootObject) |
<T> T |
getValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Class<T> desiredResultType) |
V |
getValue(java.lang.Object rootObject) |
<T> T |
getValue(java.lang.Object rootObject,
java.lang.Class<T> desiredResultType) |
java.lang.Class<V> |
getValueType() |
java.lang.Class<V> |
getValueType(EvaluationContext context) |
java.lang.Class<V> |
getValueType(EvaluationContext context,
java.lang.Object rootObject) |
java.lang.Class<V> |
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 ValueExpression(V value)
public V getValue() throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic V getValue(java.lang.Object rootObject) throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic V getValue(EvaluationContext context) throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic V getValue(EvaluationContext context, java.lang.Object rootObject) throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic <T> T getValue(java.lang.Object rootObject,
java.lang.Class<T> desiredResultType)
throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic <T> T getValue(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 <T> T getValue(EvaluationContext context, java.lang.Class<T> desiredResultType) throws EvaluationException
getValue in interface ExpressionEvaluationExceptionpublic java.lang.Class<V> getValueType() throws EvaluationException
getValueType in interface ExpressionEvaluationExceptionpublic java.lang.Class<V> getValueType(java.lang.Object rootObject) throws EvaluationException
getValueType in interface ExpressionEvaluationExceptionpublic java.lang.Class<V> getValueType(EvaluationContext context) throws EvaluationException
getValueType in interface ExpressionEvaluationExceptionpublic java.lang.Class<V> 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