Package aQute.bnd.help
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class aQute.lib.converter.Converter
Converter.Hook
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object[]EMPTY
-
Constructor Summary
Constructors Constructor Description SpecialConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.ObjectconvertNeverNull(java.lang.reflect.Type type, java.lang.Object value)static booleanisSyntaxInterface(java.lang.reflect.Type type)Guess if this interface is a map to type interface.-
Methods inherited from class aQute.lib.converter.Converter
array, cnv, cnv, cnv, convert, convert, convert, hook, isMultiple, isMultiple, mangleMethodName, proxy, setBase, setFatalIsException, toCollection, toMap
-
-
-
-
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
-
-