java.lang.Object
com.aoapps.lang.reflect.Classes
Utilities for dealing with
classes
.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptiongetAllClasses
(Class<?> clazz) Gets all classes and interfaces for a class.getAllClasses
(Class<? extends T> clazz, Class<T> upperBound) Gets all classes and interfaces for a class, up to and including the given upper bound.
-
Method Details
-
getAllClasses
public static <T> Set<Class<? extends T>> getAllClasses(Class<? extends T> clazz, Class<T> upperBound) Gets all classes and interfaces for a class, up to and including the given upper bound.More precisely: gets all the classes that the given class either extends or implements, including all its parent classes and interfaces implemented by parent classes, that are
assignable from
the given upper bound. -
getAllClasses
Gets all classes and interfaces for a class.More precisely: gets all the classes that the given class either extends or implements, including all its parent classes and interfaces implemented by parent classes.
-