Package soot

Class ModuleUtil


  • public class ModuleUtil
    extends Object
    A utility class for dealing with java 9 modules and module dependencies.
    Author:
    Andreas Dann
    • Method Detail

      • module_mode

        public static boolean module_mode()
        Check if Soot is run with module mode enabled.
        Returns:
        true, if module mode is used
      • isInModuleMode

        public boolean isInModuleMode()
        Check if Soot is run with module mode enabled.
        Returns:
        true, if module mode is used
      • declaringModule

        public final String declaringModule​(String className,
                                            String toModuleName)
        Finds the module that exports the given class to the given module.
        Parameters:
        className - the requested class
        toModuleName - the module from which the request is made
        Returns:
        the module's name that exports the class to the given module