Class ValueExpression<V>
java.lang.Object
org.springframework.amqp.rabbit.support.ValueExpression<V>
- Type Parameters:
V- - The expected value type.
- All Implemented Interfaces:
org.springframework.expression.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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable VgetValue()<T> @Nullable T@Nullable V<T> @Nullable T@Nullable VgetValue(org.springframework.expression.EvaluationContext context) <T> @Nullable TgetValue(org.springframework.expression.EvaluationContext context, @Nullable Class<T> desiredResultType) @Nullable V<T> @Nullable TgetValue(org.springframework.expression.EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) getValueType(@Nullable Object rootObject) getValueType(org.springframework.expression.EvaluationContext context) getValueType(org.springframework.expression.EvaluationContext context, @Nullable Object rootObject) @Nullable org.springframework.core.convert.TypeDescriptor@Nullable org.springframework.core.convert.TypeDescriptorgetValueTypeDescriptor(@Nullable Object rootObject) @Nullable org.springframework.core.convert.TypeDescriptorgetValueTypeDescriptor(org.springframework.expression.EvaluationContext context) @Nullable org.springframework.core.convert.TypeDescriptorgetValueTypeDescriptor(org.springframework.expression.EvaluationContext context, @Nullable Object rootObject) booleanisWritable(@Nullable Object rootObject) booleanisWritable(org.springframework.expression.EvaluationContext context) booleanisWritable(org.springframework.expression.EvaluationContext context, @Nullable Object rootObject) voidvoidsetValue(@Nullable org.springframework.expression.EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) void
-
Constructor Details
-
ValueExpression
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValue
-
getValue
public @Nullable V getValue(org.springframework.expression.EvaluationContext context) throws org.springframework.expression.EvaluationException - Specified by:
getValuein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValue
public @Nullable V getValue(org.springframework.expression.EvaluationContext context, @Nullable Object rootObject) throws org.springframework.expression.EvaluationException - Specified by:
getValuein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValue
-
getValue
public <T> @Nullable T getValue(@Nullable Class<T> desiredResultType) throws org.springframework.expression.EvaluationException - Specified by:
getValuein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValue
public <T> @Nullable T getValue(org.springframework.expression.EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) throws org.springframework.expression.EvaluationException - Specified by:
getValuein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValue
public <T> @Nullable T getValue(org.springframework.expression.EvaluationContext context, @Nullable Class<T> desiredResultType) throws org.springframework.expression.EvaluationException - Specified by:
getValuein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValueType
-
getValueType
-
getValueType
-
getValueType
public @Nullable Class<V> getValueType(org.springframework.expression.EvaluationContext context, @Nullable Object rootObject) throws org.springframework.expression.EvaluationException - Specified by:
getValueTypein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValueTypeDescriptor
public @Nullable org.springframework.core.convert.TypeDescriptor getValueTypeDescriptor() throws org.springframework.expression.EvaluationException- Specified by:
getValueTypeDescriptorin interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValueTypeDescriptor
public @Nullable org.springframework.core.convert.TypeDescriptor getValueTypeDescriptor(@Nullable Object rootObject) throws org.springframework.expression.EvaluationException - Specified by:
getValueTypeDescriptorin interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValueTypeDescriptor
public @Nullable org.springframework.core.convert.TypeDescriptor getValueTypeDescriptor(org.springframework.expression.EvaluationContext context) throws org.springframework.expression.EvaluationException - Specified by:
getValueTypeDescriptorin interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getValueTypeDescriptor
public @Nullable org.springframework.core.convert.TypeDescriptor getValueTypeDescriptor(org.springframework.expression.EvaluationContext context, @Nullable Object rootObject) throws org.springframework.expression.EvaluationException - Specified by:
getValueTypeDescriptorin interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
isWritable
public boolean isWritable(org.springframework.expression.EvaluationContext context) throws org.springframework.expression.EvaluationException - Specified by:
isWritablein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
isWritable
public boolean isWritable(org.springframework.expression.EvaluationContext context, @Nullable Object rootObject) throws org.springframework.expression.EvaluationException - Specified by:
isWritablein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
isWritable
public boolean isWritable(@Nullable Object rootObject) throws org.springframework.expression.EvaluationException - Specified by:
isWritablein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
setValue
public void setValue(org.springframework.expression.EvaluationContext context, @Nullable Object value) throws org.springframework.expression.EvaluationException - Specified by:
setValuein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
setValue
-
setValue
public void setValue(@Nullable org.springframework.expression.EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) throws org.springframework.expression.EvaluationException - Specified by:
setValuein interfaceorg.springframework.expression.Expression- Throws:
org.springframework.expression.EvaluationException
-
getExpressionString
- Specified by:
getExpressionStringin interfaceorg.springframework.expression.Expression
-