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