Package org.mvel2
Class DataConversion
java.lang.Object
org.mvel2.DataConversion
The DataConversion factory is where all of MVEL's type converters are registered with the runtime.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addConversionHandler
(Class type, ConversionHandler handler) Register a newConversionHandler
with the factory.static boolean
canConvert
(Class toType, Class convertFrom) static <T> T
static void
-
Field Details
-
CONVERTERS
-
-
Constructor Details
-
DataConversion
public DataConversion()
-
-
Method Details
-
canConvert
-
convert
-
addConversionHandler
Register a newConversionHandler
with the factory.- Parameters:
type
- - Target type represented by the conversion handler.handler
- - An instance of the handler.
-
main
-