Class ValueExpression<V>
java.lang.Object
org.springframework.integration.expression.ValueExpression<V>
- Type Parameters:
V
- - The expected value type.
- All Implemented Interfaces:
Expression
A very simple hardcoded implementation of the
Expression
interface that represents an
immutable value. It is used as value holder in the context of expression evaluation.- Since:
- 4.0
- Author:
- Artem Bilan, Gary Russell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
<T> T
<T> T
getValue
(EvaluationContext context) <T> T
getValue
(EvaluationContext context, @Nullable Class<T> desiredResultType) getValue
(EvaluationContext context, @Nullable Object rootObject) <T> T
getValue
(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) getValueType
(@Nullable Object rootObject) getValueType
(EvaluationContext context) getValueType
(EvaluationContext context, @Nullable Object rootObject) getValueTypeDescriptor
(@Nullable Object rootObject) getValueTypeDescriptor
(EvaluationContext context) getValueTypeDescriptor
(EvaluationContext context, @Nullable Object rootObject) boolean
isWritable
(@Nullable Object rootObject) boolean
isWritable
(EvaluationContext context) boolean
isWritable
(EvaluationContext context, @Nullable Object rootObject) void
void
setValue
(EvaluationContext context, @Nullable Object value) void
setValue
(EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) toString()
-
Constructor Details
-
ValueExpression
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
- Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
- Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
public V getValue(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
public <T> T getValue(@Nullable Object rootObject, @Nullable Class<T> desiredResultType) throws EvaluationException - Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
- Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
public <T> T getValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) throws EvaluationException - Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
public <T> T getValue(EvaluationContext context, @Nullable Class<T> desiredResultType) throws EvaluationException - Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueType
in interfaceExpression
- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueType
in interfaceExpression
- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueType
in interfaceExpression
- Throws:
EvaluationException
-
getValueType
public Class<V> getValueType(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
getValueType
in interfaceExpression
- Throws:
EvaluationException
-
getValueTypeDescriptor
- Specified by:
getValueTypeDescriptor
in interfaceExpression
- Throws:
EvaluationException
-
getValueTypeDescriptor
public TypeDescriptor getValueTypeDescriptor(@Nullable Object rootObject) throws EvaluationException - Specified by:
getValueTypeDescriptor
in interfaceExpression
- Throws:
EvaluationException
-
getValueTypeDescriptor
- Specified by:
getValueTypeDescriptor
in interfaceExpression
- Throws:
EvaluationException
-
getValueTypeDescriptor
public TypeDescriptor getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
getValueTypeDescriptor
in interfaceExpression
- Throws:
EvaluationException
-
isWritable
- Specified by:
isWritable
in interfaceExpression
- Throws:
EvaluationException
-
isWritable
public boolean isWritable(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
isWritable
in interfaceExpression
- Throws:
EvaluationException
-
isWritable
- Specified by:
isWritable
in interfaceExpression
- Throws:
EvaluationException
-
setValue
- Specified by:
setValue
in interfaceExpression
- Throws:
EvaluationException
-
setValue
public void setValue(@Nullable Object rootObject, @Nullable Object value) throws EvaluationException - Specified by:
setValue
in interfaceExpression
- Throws:
EvaluationException
-
setValue
public void setValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) throws EvaluationException - Specified by:
setValue
in interfaceExpression
- Throws:
EvaluationException
-
getExpressionString
- Specified by:
getExpressionString
in interfaceExpression
-
toString
-