Package repast.simphony.util
Class ClassPathEntry
java.lang.Object
repast.simphony.util.ClassPathEntry
Encapsulates a path on which classes or jars might be found together with a
class name filters. The filters work according to "or" semantics, so if any
filter is passed then the class name passes.
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionClassPathEntry
(File path) ClassPathEntry
(File path, List<String> filters) ClassPathEntry
(File path, ClassPathFilter filter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified filter as a ClassPathFilter to this PathEntry.void
addFilter
(ClassPathFilter filter) Adds the specified filter to this PathEntry.boolean
Returns true if theGets the names of the classes on this path.Gets the paths to jars and / or classes that this ClassPathEntry contains.Gets the filter associated with this ClassPathEntry.getPath()
Gets the path.boolean
isValid()
Gets whether or not this ClassPathEntry contains a directory that contains classes, or jars.
-
Constructor Details
-
ClassPathEntry
-
ClassPathEntry
-
ClassPathEntry
-
-
Method Details
-
addFilter
Adds the specified filter to this PathEntry.- Parameters:
filter
- the filter to add
-
addFilter
Adds the specified filter as a ClassPathFilter to this PathEntry.- Parameters:
filter
- the filter to add
-
getPath
Gets the path.- Returns:
- the path.
-
filter
Returns true if the- Parameters:
className
-- Returns:
-
isValid
public boolean isValid()Gets whether or not this ClassPathEntry contains a directory that contains classes, or jars.- Returns:
-
getFilter
Gets the filter associated with this ClassPathEntry.- Returns:
- the filter associated with this ClassPathEntry.
-
getClassPaths
Gets the paths to jars and / or classes that this ClassPathEntry contains.- Returns:
- the paths to jars and / or classes that this ClassPathEntry contains.
-
getClassNames
Gets the names of the classes on this path. The classes must pass the filter in order to be returned.- Returns:
- the names of the classes on this path. The classes must pass the filter in order to be returned.
- Throws:
IOException
ClassNotFoundException
-