public class PowerMockUtils extends Object
Constructor and Description |
---|
PowerMockUtils() |
Modifier and Type | Method and Description |
---|---|
static Iterator<Class<?>> |
getClassIterator(ClassLoader classLoader)
Get an iterator of all classes loaded by the specific classloader.
|
static void |
printClassesLoadedByClassloader(ClassLoader classLoader,
boolean includeParent) |
public static Iterator<Class<?>> getClassIterator(ClassLoader classLoader) throws NoSuchFieldException, IllegalAccessException
classLoader
- the class loader for that iterator with all loaded classes should be created.classLoader
NoSuchFieldException
IllegalAccessException
public static void printClassesLoadedByClassloader(ClassLoader classLoader, boolean includeParent) throws NoSuchFieldException, IllegalAccessException
classLoader
- the class loader for that classes is printed.NoSuchFieldException
IllegalAccessException
Copyright © 2019. All rights reserved.