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