V - - The expected value type.public class ValueExpression<V>
extends java.lang.Object
implements org.springframework.expression.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(org.springframework.expression.EvaluationContext context) |
<T> T |
getValue(org.springframework.expression.EvaluationContext context,
java.lang.Class<T> desiredResultType) |
V |
getValue(org.springframework.expression.EvaluationContext context,
java.lang.Object rootObject) |
<T> T |
getValue(org.springframework.expression.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(org.springframework.expression.EvaluationContext context) |
java.lang.Class<V> |
getValueType(org.springframework.expression.EvaluationContext context,
java.lang.Object rootObject) |
java.lang.Class<V> |
getValueType(java.lang.Object rootObject) |
org.springframework.core.convert.TypeDescriptor |
getValueTypeDescriptor() |
org.springframework.core.convert.TypeDescriptor |
getValueTypeDescriptor(org.springframework.expression.EvaluationContext context) |
org.springframework.core.convert.TypeDescriptor |
getValueTypeDescriptor(org.springframework.expression.EvaluationContext context,
java.lang.Object rootObject) |
org.springframework.core.convert.TypeDescriptor |
getValueTypeDescriptor(java.lang.Object rootObject) |
boolean |
isWritable(org.springframework.expression.EvaluationContext context) |
boolean |
isWritable(org.springframework.expression.EvaluationContext context,
java.lang.Object rootObject) |
boolean |
isWritable(java.lang.Object rootObject) |
void |
setValue(org.springframework.expression.EvaluationContext context,
java.lang.Object value) |
void |
setValue(org.springframework.expression.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 org.springframework.expression.EvaluationException
getValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic V getValue(java.lang.Object rootObject) throws org.springframework.expression.EvaluationException
getValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic V getValue(org.springframework.expression.EvaluationContext context) throws org.springframework.expression.EvaluationException
getValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic V getValue(org.springframework.expression.EvaluationContext context, java.lang.Object rootObject) throws org.springframework.expression.EvaluationException
getValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic <T> T getValue(java.lang.Object rootObject,
java.lang.Class<T> desiredResultType)
throws org.springframework.expression.EvaluationException
getValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic <T> T getValue(java.lang.Class<T> desiredResultType)
throws org.springframework.expression.EvaluationException
getValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic <T> T getValue(org.springframework.expression.EvaluationContext context,
java.lang.Object rootObject,
java.lang.Class<T> desiredResultType)
throws org.springframework.expression.EvaluationException
getValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic <T> T getValue(org.springframework.expression.EvaluationContext context,
java.lang.Class<T> desiredResultType)
throws org.springframework.expression.EvaluationException
getValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic java.lang.Class<V> getValueType() throws org.springframework.expression.EvaluationException
getValueType in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic java.lang.Class<V> getValueType(java.lang.Object rootObject) throws org.springframework.expression.EvaluationException
getValueType in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic java.lang.Class<V> getValueType(org.springframework.expression.EvaluationContext context) throws org.springframework.expression.EvaluationException
getValueType in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic java.lang.Class<V> getValueType(org.springframework.expression.EvaluationContext context, java.lang.Object rootObject) throws org.springframework.expression.EvaluationException
getValueType in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic org.springframework.core.convert.TypeDescriptor getValueTypeDescriptor()
throws org.springframework.expression.EvaluationException
getValueTypeDescriptor in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic org.springframework.core.convert.TypeDescriptor getValueTypeDescriptor(java.lang.Object rootObject)
throws org.springframework.expression.EvaluationException
getValueTypeDescriptor in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic org.springframework.core.convert.TypeDescriptor getValueTypeDescriptor(org.springframework.expression.EvaluationContext context)
throws org.springframework.expression.EvaluationException
getValueTypeDescriptor in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic org.springframework.core.convert.TypeDescriptor getValueTypeDescriptor(org.springframework.expression.EvaluationContext context,
java.lang.Object rootObject)
throws org.springframework.expression.EvaluationException
getValueTypeDescriptor in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic boolean isWritable(org.springframework.expression.EvaluationContext context)
throws org.springframework.expression.EvaluationException
isWritable in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic boolean isWritable(org.springframework.expression.EvaluationContext context,
java.lang.Object rootObject)
throws org.springframework.expression.EvaluationException
isWritable in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic boolean isWritable(java.lang.Object rootObject)
throws org.springframework.expression.EvaluationException
isWritable in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic void setValue(org.springframework.expression.EvaluationContext context,
java.lang.Object value)
throws org.springframework.expression.EvaluationException
setValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic void setValue(java.lang.Object rootObject,
java.lang.Object value)
throws org.springframework.expression.EvaluationException
setValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic void setValue(org.springframework.expression.EvaluationContext context,
java.lang.Object rootObject,
java.lang.Object value)
throws org.springframework.expression.EvaluationException
setValue in interface org.springframework.expression.Expressionorg.springframework.expression.EvaluationExceptionpublic java.lang.String getExpressionString()
getExpressionString in interface org.springframework.expression.Expression