Package org.powermock.core.agent
Interface JavaAgentClassRegister
-
public interface JavaAgentClassRegisterThis register contains information about which class has been modified by PowerMock Java Agent.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Remove all registered classes for all class loaders.booleanisModifiedByAgent(ClassLoader classLoader, String className)Check if class withclassNamehas been modified for the given class loadervoidregisterClass(ClassLoader loader, String className)Register that the class with nameclassNamehas been modified for the given class loader.
-
-
-
Method Detail
-
isModifiedByAgent
boolean isModifiedByAgent(ClassLoader classLoader, String className)
Check if class withclassNamehas been modified for the given class loader- Parameters:
classLoader- -ClassLoaderfor that class should be checkedclassName- - name of class- Returns:
trueif the given class has been modified, otherwisefalse
-
registerClass
void registerClass(ClassLoader loader, String className)
Register that the class with nameclassNamehas been modified for the given class loader.- Parameters:
loader- -ClassLoaderfor that class has been modified.className- - name of the class which has been modified.
-
clear
void clear()
Remove all registered classes for all class loaders.
-
-