public final class GenericsResolver
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static GenericsContext |
resolve(java.lang.Class<?> type,
java.lang.Class<?>... ignoreClasses)
By default returned context set on root class (but generic types for root class will be resolved from specified
generics bounds).
|
public static GenericsContext resolve(java.lang.Class<?> type, java.lang.Class<?>... ignoreClasses)
returnedContext.type(SomeTypeFromHierarchy.class).
Note: when ignore classes provided, produced GenericsInfo instance will not be cached
(and full version from cache will not be used also)
type - root class to resolve generics hierarchyignoreClasses - list of classes to ignore during inspection (useful to avoid interface clashes
or to limit resolution depth)