Class ValueExpression<V>
java.lang.Object
org.springframework.amqp.rabbit.support.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:
- 1.4
- Author:
- Artem Bilan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable VgetValue()<T> @Nullable T@Nullable V<T> @Nullable T@Nullable VgetValue(EvaluationContext context) <T> @Nullable TgetValue(EvaluationContext context, @Nullable Class<T> desiredResultType) @Nullable VgetValue(EvaluationContext context, @Nullable Object rootObject) <T> @Nullable TgetValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) getValueType(@Nullable Object rootObject) getValueType(EvaluationContext context) getValueType(EvaluationContext context, @Nullable Object rootObject) @Nullable TypeDescriptor@Nullable TypeDescriptorgetValueTypeDescriptor(@Nullable Object rootObject) @Nullable TypeDescriptorgetValueTypeDescriptor(EvaluationContext context) @Nullable TypeDescriptorgetValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) booleanisWritable(@Nullable Object rootObject) booleanisWritable(EvaluationContext context) booleanisWritable(EvaluationContext context, @Nullable Object rootObject) voidvoidsetValue(@Nullable EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) voidsetValue(EvaluationContext context, @Nullable Object value)
-
Constructor Details
-
ValueExpression
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
public @Nullable V getValue(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
public <T> @Nullable T getValue(@Nullable Object rootObject, @Nullable Class<T> desiredResultType) throws EvaluationException - Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
public <T> @Nullable T getValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) throws EvaluationException - Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
public <T> @Nullable T getValue(EvaluationContext context, @Nullable Class<T> desiredResultType) throws EvaluationException - Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueTypein interfaceExpression- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueTypein interfaceExpression- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueTypein interfaceExpression- Throws:
EvaluationException
-
getValueType
public @Nullable Class<V> getValueType(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
getValueTypein interfaceExpression- Throws:
EvaluationException
-
getValueTypeDescriptor
- Specified by:
getValueTypeDescriptorin interfaceExpression- Throws:
EvaluationException
-
getValueTypeDescriptor
public @Nullable TypeDescriptor getValueTypeDescriptor(@Nullable Object rootObject) throws EvaluationException - Specified by:
getValueTypeDescriptorin interfaceExpression- Throws:
EvaluationException
-
getValueTypeDescriptor
public @Nullable TypeDescriptor getValueTypeDescriptor(EvaluationContext context) throws EvaluationException - Specified by:
getValueTypeDescriptorin interfaceExpression- Throws:
EvaluationException
-
getValueTypeDescriptor
public @Nullable TypeDescriptor getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
getValueTypeDescriptorin interfaceExpression- Throws:
EvaluationException
-
isWritable
- Specified by:
isWritablein interfaceExpression- Throws:
EvaluationException
-
isWritable
public boolean isWritable(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
isWritablein interfaceExpression- Throws:
EvaluationException
-
isWritable
- Specified by:
isWritablein interfaceExpression- Throws:
EvaluationException
-
setValue
- Specified by:
setValuein interfaceExpression- Throws:
EvaluationException
-
setValue
public void setValue(@Nullable Object rootObject, @Nullable Object value) throws EvaluationException - Specified by:
setValuein interfaceExpression- Throws:
EvaluationException
-
setValue
public void setValue(@Nullable EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) throws EvaluationException - Specified by:
setValuein interfaceExpression- Throws:
EvaluationException
-
getExpressionString
- Specified by:
getExpressionStringin interfaceExpression
-