| java.lang.Object | |
| ↳ | org.springframework.expression.common.ExpressionUtils |
Common utility functions that may be used by any Expression Language provider.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Determines if there is a type converter available in the specified context and attempts to use it to convert the
supplied value to the specified type.
| |||||||||||
Determines if there is a type converter available in the specified context and attempts to use it to convert the
supplied value to the specified type.
| |||||||||||
Attempt to convert a typed value to a boolean using the supplied type converter.
| |||||||||||
Attempt to convert a typed value to a byte using the supplied type converter.
| |||||||||||
Attempt to convert a typed value to a char using the supplied type converter.
| |||||||||||
Attempt to convert a typed value to a double using the supplied type converter.
| |||||||||||
Attempt to convert a typed value to a float using the supplied type converter.
| |||||||||||
Attempt to convert a typed value to an int using the supplied type converter.
| |||||||||||
Attempt to convert a typed value to a long using the supplied type converter.
| |||||||||||
Attempt to convert a typed value to a short using the supplied type converter.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Determines if there is a type converter available in the specified context and attempts to use it to convert the supplied value to the specified type. Throws an exception if conversion is not possible.
| context | the evaluation context that may define a type converter |
|---|---|
| value | the value to convert (may be null) |
| targetType | the type to attempt conversion to |
| EvaluationException | if there is a problem during conversion or conversion of the value to the specified type is not supported |
|---|
Determines if there is a type converter available in the specified context and attempts to use it to convert the supplied value to the specified type. Throws an exception if conversion is not possible.
| context | the evaluation context that may define a type converter |
|---|---|
| typedValue | the value to convert and a type descriptor describing it |
| targetType | the type to attempt conversion to |
| EvaluationException | if there is a problem during conversion or conversion of the value to the specified type is not supported |
|---|
Attempt to convert a typed value to a boolean using the supplied type converter.
Attempt to convert a typed value to a byte using the supplied type converter.
Attempt to convert a typed value to a char using the supplied type converter.
Attempt to convert a typed value to a double using the supplied type converter.
Attempt to convert a typed value to a float using the supplied type converter.
Attempt to convert a typed value to an int using the supplied type converter.
Attempt to convert a typed value to a long using the supplied type converter.
Attempt to convert a typed value to a short using the supplied type converter.