public class ClassInspector extends Object
| Constructor and Description |
|---|
ClassInspector() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
findClassMember(Package pkg,
String name,
Class<?> clazz) |
static int |
getClassHierarchyHeight(Class<?> clazz) |
static Set<Type> |
getEquivalentParametrizableClasses(Type clazz) |
static List<Type> |
getInterfaceOrSuperclassImplementations(Type implementation,
Class<?> interf) |
static Set<Class<?>> |
getNonPrivateClassMembers(Class<?> clazz) |
static Class<?> |
getTheNearestSuperClass(Class<?> clazz1,
Class<?> clazz2)
|
static List<Class<?>> |
getTheNearestSuperClasses(List<Class<?>> classes,
List<Class<?>> otherClasses)
|
static List<? extends Class<?>> |
intersectRawTypes(Class<?> clazz1,
Class<?> clazz2)
Looks for intersection of raw types of classes and all super classes and interfaces.
|
static List<? extends Class<?>> |
intersectRawTypes(List<Class<?>> classes1,
List<Class<?>> classes2)
Returns the intersection of raw types of classes and all super classes and interfaces.
|
static boolean |
isAssignable(Class<?> clazz2,
Class<?> clazz1) |
static boolean |
isGeneric(Type type) |
static boolean |
isMoreSpecficFor(Class<?> clazz2,
Class<?> clazz1,
Class<?> reference) |
static void |
updateTypeMappingOfInterfaceSubclass(Class<?> subclass,
Class<?> interfaceClass,
Map<String,SymbolType> mapping) |
public static List<Type> getInterfaceOrSuperclassImplementations(Type implementation, Class<?> interf)
public static void updateTypeMappingOfInterfaceSubclass(Class<?> subclass, Class<?> interfaceClass, Map<String,SymbolType> mapping) throws InvalidTypeException
InvalidTypeExceptionpublic static List<? extends Class<?>> intersectRawTypes(List<Class<?>> classes1, List<Class<?>> classes2)
classes1 - first set of classes to intersectclasses2 - first set of classes to intersectpublic static List<? extends Class<?>> intersectRawTypes(Class<?> clazz1, Class<?> clazz2)
clazz1 - one of the classes to intersectclazz2 - one of the classes to intersect@Deprecated public static Class<?> getTheNearestSuperClass(Class<?> clazz1, Class<?> clazz2)
intersectRawTypes(java.util.List<java.lang.Class<?>>, java.util.List<java.lang.Class<?>>)clazz1 - one of the classes to intersect.clazz2 - one of the classes to intersect.@Deprecated public static List<Class<?>> getTheNearestSuperClasses(List<Class<?>> classes, List<Class<?>> otherClasses)
intersectRawTypes(java.util.List<java.lang.Class<?>>, java.util.List<java.lang.Class<?>>)classes - the first set of classes to intersectotherClasses - the second set of classes to intersectpublic static Set<Type> getEquivalentParametrizableClasses(Type clazz)
public static boolean isGeneric(Type type)
public static int getClassHierarchyHeight(Class<?> clazz)
Copyright © 2018. All rights reserved.