Class SpecialConverter


  • class SpecialConverter
    extends Converter
    Special handling of the instruction types like Parameters, Attrs, and the type safe interfaces related to this.
    • Field Detail

      • EMPTY

        private static final java.lang.Object[] EMPTY
    • Constructor Detail

      • SpecialConverter

        SpecialConverter()
    • Method Detail

      • isSyntaxInterface

        public static boolean isSyntaxInterface​(java.lang.reflect.Type type)
        Guess if this interface is a map to type interface. This is basically any interface - interfaces that extend of Map and Iterable.
        Parameters:
        type - the type to guess
        Returns:
        true if this is likely an interface that can be used for converting a map to a type.
      • convertNeverNull

        java.lang.Object convertNeverNull​(java.lang.reflect.Type type,
                                          java.lang.Object value)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception