Package repast.simphony.util
Class ClassFinder
java.lang.Object
repast.simphony.util.ClassFinder
Finds all the classes on a given path(s). Optional filters can be provided to
refine the results.
- Author:
- Nick Collier
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntry
(ClassPathEntry entry) Gets the classes in the currently added entries, applying any filters.protected void
processJar
(ClassPathEntry entry, File path, ClassFinder.Adder adder)
-
Constructor Details
-
ClassFinder
public ClassFinder()
-
-
Method Details
-
addEntry
-
findClassNames
- Throws:
IOException
ClassNotFoundException
-
findClasses
Gets the classes in the currently added entries, applying any filters. Assumes the entries are already on the classpath.- Returns:
- the classes in the currently added entries.
- Throws:
ClassNotFoundException
IOException
-
processJar
protected void processJar(ClassPathEntry entry, File path, ClassFinder.Adder adder) throws IOException, ClassNotFoundException - Throws:
IOException
ClassNotFoundException
-