Module org.scijava.types
Package org.scijava.types
This package offers type reasoning beyond only what is offered by SciJava
Common's
Types class. This package offers the
following additional features:
- Reason about whether a collection of arguments (object instances, generic types, or a mixture thereof) satisfy a given list of generic types, such as those of a particular method signature.
- Create
Nilobjects, which act as "typed null" placeholders, and support generation of proxy instances of their associated generic type, similar to (but less featureful than) how mocking frameworks create mock objects. - Recover erased generic type information from object instances at runtime,
in an extensible way, via
TypeExtractorplugins and theTypeReifier.reify(java.lang.Object)method. E.g., you can learn that an object of classHashMapis actually (or at least functionally) aHashMap<String, Integer>.
-
Interface Summary Interface Description Proxyable<T> An object which knows how to generate proxy objects of a particular type. -
Class Summary Class Description Nil<T> A "typed null" which knows its generic type, and can generate proxy objects implementing that type's interfaces, with customizable behavior per interface method via callbacks.