My favorites | Sign in
Project Logo
                
Code license: Apache License 2.0
Labels: java, reflection, generics
Show all Featured wiki pages:
ExampleUsage
Feeds:
Groups:
People details
Project owners:
  coekie

A small library for reflection related to generic types in Java.

Java provides some reflection for generic types. There is the java.lang.reflect.Type, implemented by Class, and with subinterfaces ParameterizedType, GenericArrayType,... These can represent complex types like List<? extends String>[].

But java does not provide anything beyond the introspection needed to get these types. There is no way to check if two types are supertypes. Or, for example, given a that implements List, get its type parameter for that interface. That's where this library comes in. It allows you to do arithmetics on Types.









Hosted by Google Code