()
| 87 | } |
| 88 | |
| 89 | public Set<String> getClasses() throws IOException { |
| 90 | Set<String> classes = new HashSet<String>(); |
| 91 | Enumeration<URL> resources = getClassLoader().getResources(pkg + "/"); |
| 92 | if (resources != null) { |
| 93 | while (resources.hasMoreElements()) { |
| 94 | String path = sanitizeURL(resources.nextElement().getFile()); |
| 95 | if ((path != null) && (path.trim().length() > 0)) |
| 96 | classes.addAll( |
| 97 | isJARPath(path) ? getClassesFromJAR(path) : getClassesFromDirectory(path) |
| 98 | ); |
| 99 | } |
| 100 | } |
| 101 | return classes; |
| 102 | } |
| 103 | |
| 104 | } |
no test coverage detected