Package org.mvel2

Interface ConversionHandler

    • Method Detail

      • convertFrom

        Object convertFrom​(Object in)
        Converts the passed argument to the type represented by the handler.
        Parameters:
        in - - the input type
        Returns:
        - the converted type
      • canConvertFrom

        boolean canConvertFrom​(Class cls)
        This method is used to indicate to the runtime whehter or not the handler knows how to convert from the specified type.
        Parameters:
        cls - - the source type
        Returns:
        - true if the converter supports converting from the specified type.