java.lang.Object
imagingbook.core.ClassUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getModuleFromClasspath
(Class<?> clazz, String projectName) Tries to discover the name of the module defining the specified class.static String
getModuleFromPackage
(Class<?> clazz) static void
-
Constructor Details
-
ClassUtils
public ClassUtils()
-
-
Method Details
-
getModuleFromPackage
-
getModuleFromClasspath
Tries to discover the name of the module defining the specified class. Call with arguments (clazz, "imagingbook-public").- Parameters:
clazz
- a class instanceprojectName
- the name of the containing project- Returns:
- the module name or
null
if not found.
-
main
- Throws:
URISyntaxException
-