Package org.powermock.core.agent
Interface JavaAgentClassRegister
public interface JavaAgentClassRegister
This register contains information about which class has been modified by PowerMock Java Agent.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Remove all registered classes for all class loaders.boolean
isModifiedByAgent
(ClassLoader classLoader, String className) Check if class withclassName
has been modified for the given class loadervoid
registerClass
(ClassLoader loader, String className) Register that the class with nameclassName
has been modified for the given class loader.
-
Method Details
-
isModifiedByAgent
Check if class withclassName
has been modified for the given class loader- Parameters:
classLoader
- -ClassLoader
for that class should be checkedclassName
- - name of class- Returns:
true
if the given class has been modified, otherwisefalse
-
registerClass
Register that the class with nameclassName
has been modified for the given class loader.- Parameters:
loader
- -ClassLoader
for 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.
-