public abstract class TypeReflectionUtils extends Object
com.googlecode.gentyref.GenericTypeReflector. All the unused functions have been removed and only the
getExactSuperType(Type, Class)has remained. The private functions used by
getExactSuperType(Type, Class)have also been tailored to our exact needs. The credits for creating this functionality however go to Wouter Coekaerts, which created this functionality in the 'com.googlecode.gentyref' library with group id 'gentyref'.
|Modifier and Type||Method and Description|
Finds the most specific supertype of type whose erasure is searchClass.
ParameterizedTypeif searchClass is a real class or interface and type has parameters for it
GenericArrayTypeif searchClass is an array type, and type has type parameters for it
Classif type is a raw type, or has no type parameters for searchClass
For example, with class StringList implements List<String>,
ParameterizedType representing Collection<String>.
type- The type to search
searchClass- The erased type of the super class to find
type, whose erased type is
Copyright © 2010–2020. All rights reserved.