Package | Description |
---|---|
org.springframework.expression |
Core abstractions behind the Spring Expression Language.
|
org.springframework.expression.common |
Common utility classes behind the Spring Expression Language.
|
org.springframework.expression.spel |
SpEL's central implementation package.
|
org.springframework.expression.spel.support |
SpEL's default implementations for various core abstractions.
|
Modifier and Type | Method and Description |
---|---|
TypeConverter |
EvaluationContext.getTypeConverter()
Return a type converter that can convert (or coerce) a value from one type to another.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ExpressionUtils.toBoolean(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a boolean using the supplied type converter.
|
static byte |
ExpressionUtils.toByte(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a byte using the supplied type converter.
|
static char |
ExpressionUtils.toChar(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a char using the supplied type converter.
|
static double |
ExpressionUtils.toDouble(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a double using the supplied type converter.
|
static float |
ExpressionUtils.toFloat(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a float using the supplied type converter.
|
static int |
ExpressionUtils.toInt(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to an int using the supplied type converter.
|
static long |
ExpressionUtils.toLong(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a long using the supplied type converter.
|
static short |
ExpressionUtils.toShort(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a short using the supplied type converter.
|
Modifier and Type | Method and Description |
---|---|
TypeConverter |
ExpressionState.getTypeConverter() |
Modifier and Type | Class and Description |
---|---|
class |
StandardTypeConverter
Default implementation of the
TypeConverter interface,
delegating to a core Spring ConversionService . |
Modifier and Type | Method and Description |
---|---|
TypeConverter |
SimpleEvaluationContext.getTypeConverter()
The configured
TypeConverter . |
TypeConverter |
StandardEvaluationContext.getTypeConverter() |
Modifier and Type | Method and Description |
---|---|
static boolean |
ReflectionHelper.convertAllArguments(TypeConverter converter,
Object[] arguments,
Method method)
Convert a supplied set of arguments into the requested types.
|
void |
StandardEvaluationContext.setTypeConverter(TypeConverter typeConverter) |
SimpleEvaluationContext.Builder |
SimpleEvaluationContext.Builder.withTypeConverter(TypeConverter converter)
Register a custom
TypeConverter . |