Interface JavaAgentClassRegister


  • public interface JavaAgentClassRegister
    This 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
      void clear()
      Remove all registered classes for all class loaders.
      boolean isModifiedByAgent​(java.lang.ClassLoader classLoader, java.lang.String className)
      Check if class with className has been modified for the given class loader
      void registerClass​(java.lang.ClassLoader loader, java.lang.String className)
      Register that the class with name className has been modified for the given class loader.
    • Method Detail

      • isModifiedByAgent

        boolean isModifiedByAgent​(java.lang.ClassLoader classLoader,
                                  java.lang.String className)
        Check if class with className has been modified for the given class loader
        Parameters:
        classLoader - - ClassLoader for that class should be checked
        className - - name of class
        Returns:
        true if the given class has been modified, otherwise false
      • registerClass

        void registerClass​(java.lang.ClassLoader loader,
                           java.lang.String className)
        Register that the class with name className 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.