Class ShortCH

java.lang.Object
org.mvel2.conversion.ShortCH
All Implemented Interfaces:
ConversionHandler

public class ShortCH extends Object implements ConversionHandler
  • Field Details

    • TRUE

      private static final Short TRUE
      This is purely because Eclipse sucks, and has a serious bug with it's java parser.
    • FALSE

      private static final Short FALSE
    • stringConverter

      private static Converter stringConverter
    • CNV

      private static final Map<Class,Converter> CNV
  • Constructor Details

    • ShortCH

      public ShortCH()
  • Method Details

    • convertFrom

      public Object convertFrom(Object in)
      Description copied from interface: ConversionHandler
      Converts the passed argument to the type represented by the handler.
      Specified by:
      convertFrom in interface ConversionHandler
      Parameters:
      in - - the input type
      Returns:
      - the converted type
    • canConvertFrom

      public boolean canConvertFrom(Class cls)
      Description copied from interface: ConversionHandler
      This method is used to indicate to the runtime whehter or not the handler knows how to convert from the specified type.
      Specified by:
      canConvertFrom in interface ConversionHandler
      Parameters:
      cls - - the source type
      Returns:
      - true if the converter supports converting from the specified type.