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 Expression
EvaluationException
public V getValue(java.lang.Object rootObject) throws EvaluationException
getValue
in interface Expression
EvaluationException
public V getValue(EvaluationContext context) throws EvaluationException
getValue
in interface Expression
EvaluationException
public V getValue(EvaluationContext context, java.lang.Object rootObject) throws EvaluationException
getValue
in interface Expression
EvaluationException
public <T> T getValue(java.lang.Object rootObject, java.lang.Class<T> desiredResultType) throws EvaluationException
getValue
in interface Expression
EvaluationException
public <T> T getValue(java.lang.Class<T> desiredResultType) throws EvaluationException
getValue
in interface Expression
EvaluationException
public <T> T getValue(EvaluationContext context, java.lang.Object rootObject, java.lang.Class<T> desiredResultType) throws EvaluationException
getValue
in interface Expression
EvaluationException
public <T> T getValue(EvaluationContext context, java.lang.Class<T> desiredResultType) throws EvaluationException
getValue
in interface Expression
EvaluationException
public java.lang.Class<V> getValueType() throws EvaluationException
getValueType
in interface Expression
EvaluationException
public java.lang.Class<V> getValueType(java.lang.Object rootObject) throws EvaluationException
getValueType
in interface Expression
EvaluationException
public java.lang.Class<V> getValueType(EvaluationContext context) throws EvaluationException
getValueType
in interface Expression
EvaluationException
public java.lang.Class<V> getValueType(EvaluationContext context, java.lang.Object rootObject) throws EvaluationException
getValueType
in interface Expression
EvaluationException
public TypeDescriptor getValueTypeDescriptor() throws EvaluationException
getValueTypeDescriptor
in interface Expression
EvaluationException
public TypeDescriptor getValueTypeDescriptor(java.lang.Object rootObject) throws EvaluationException
getValueTypeDescriptor
in interface Expression
EvaluationException
public TypeDescriptor getValueTypeDescriptor(EvaluationContext context) throws EvaluationException
getValueTypeDescriptor
in interface Expression
EvaluationException
public TypeDescriptor getValueTypeDescriptor(EvaluationContext context, java.lang.Object rootObject) throws EvaluationException
getValueTypeDescriptor
in interface Expression
EvaluationException
public boolean isWritable(EvaluationContext context) throws EvaluationException
isWritable
in interface Expression
EvaluationException
public boolean isWritable(EvaluationContext context, java.lang.Object rootObject) throws EvaluationException
isWritable
in interface Expression
EvaluationException
public boolean isWritable(java.lang.Object rootObject) throws EvaluationException
isWritable
in interface Expression
EvaluationException
public void setValue(EvaluationContext context, java.lang.Object value) throws EvaluationException
setValue
in interface Expression
EvaluationException
public void setValue(java.lang.Object rootObject, java.lang.Object value) throws EvaluationException
setValue
in interface Expression
EvaluationException
public void setValue(EvaluationContext context, java.lang.Object rootObject, java.lang.Object value) throws EvaluationException
setValue
in interface Expression
EvaluationException
public java.lang.String getExpressionString()
getExpressionString
in interface Expression