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.
- Author:
- Mike Brock
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddConversionHandler(Class type, ConversionHandler handler) Register a newConversionHandlerwith the factory.static booleancanConvert(Class toType, Class convertFrom) static <T> Tstatic void
-
Constructor Details
-
DataConversion
public DataConversion()
-
-
Method Details
-
canConvert
-
convert
-
addConversionHandler
Register a newConversionHandlerwith the factory.- Parameters:
type- - Target type represented by the conversion handler.handler- - An instance of the handler.
-
main
-