Class SpecialConverter

java.lang.Object
aQute.lib.converter.Converter
aQute.bnd.help.SpecialConverter

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

    • EMPTY

      private static final Object[] EMPTY
  • Constructor Details

    • SpecialConverter

      SpecialConverter()
  • Method Details

    • isSyntaxInterface

      public static boolean isSyntaxInterface(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

      Object convertNeverNull(Type type, Object value) throws Exception
      Throws:
      Exception