public class TypesModel extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TypesModel.ClassHierarchyNode |
| Modifier and Type | Field and Description |
|---|---|
protected Set<Class<?>> |
allClasses |
protected Map<Class<?>,TypesModel.ClassHierarchyNode> |
classHierarchy |
protected Set<Class<? extends Annotation>> |
ignoreAnnotations |
| Constructor and Description |
|---|
TypesModel(Set<Class<?>> classes,
Set<String> packages,
Set<Class<? extends Annotation>> ignoreAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
Set<Type> |
getAssignableTypesWithinClassHierarchy(Type type)
This method is the core functionality to find polymorphic type structures.
|
protected TypesModel.ClassHierarchyNode |
getClassHierarchyNodeForType(Type type) |
protected final Map<Class<?>,TypesModel.ClassHierarchyNode> classHierarchy
protected final Set<Class<? extends Annotation>> ignoreAnnotations
protected TypesModel.ClassHierarchyNode getClassHierarchyNodeForType(Type type)
type - a typepublic Set<Type> getAssignableTypesWithinClassHierarchy(Type type)
type - the type for with sub types should be foundCopyright © 2018 BILD GmbH & Co. KG. All rights reserved.