Package org.powermock.core
Class PowerMockUtils
- java.lang.Object
-
- org.powermock.core.PowerMockUtils
-
public class PowerMockUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PowerMockUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Iterator<java.lang.Class<?>>getClassIterator(java.lang.ClassLoader classLoader)Get an iterator of all classes loaded by the specific classloader.static voidprintClassesLoadedByClassloader(java.lang.ClassLoader classLoader, boolean includeParent)
-
-
-
Method Detail
-
getClassIterator
public static java.util.Iterator<java.lang.Class<?>> getClassIterator(java.lang.ClassLoader classLoader) throws java.lang.NoSuchFieldException, java.lang.IllegalAccessExceptionGet an iterator of all classes loaded by the specific classloader.- Parameters:
classLoader- the class loader for that iterator with all loaded classes should be created.- Returns:
- the iterator with all classes loaded by the given
classLoader - Throws:
java.lang.NoSuchFieldExceptionjava.lang.IllegalAccessException
-
printClassesLoadedByClassloader
public static void printClassesLoadedByClassloader(java.lang.ClassLoader classLoader, boolean includeParent) throws java.lang.NoSuchFieldException, java.lang.IllegalAccessException- Parameters:
classLoader- the class loader for that classes is printed.- Throws:
java.lang.NoSuchFieldExceptionjava.lang.IllegalAccessException
-
-