/** * Scans the specified jars for packages and returns a list of all packages found in that jar. The scanner only * collects packages that contain class files. * * @return a collection of all package names found in the jar */ public Collection<String> scanPackages() { return scanJar(p -> Files.isDirectory(p) && containsClassFiles(p) && !isIgnored(p.toAbsolutePath())); }
/** * Scans the specified jars for packages and returns a list of all packages found in that jar. The scanner makes no * distinction between packages and folders. * * @return a collection of all classes names found in the jar */ public Collection<String> scanClasses() { return scanJar(p -> isClassFile(p) && !isIgnored(p.toAbsolutePath())); }