Package adams.core
Class FindClass
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.FindClass
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
public class FindClass extends LoggingObject
For locating classes on the classpath.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
ClassPathTraversal
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FindClass.Listener
For collecting URLs.
-
Field Summary
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description FindClass()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
For testing only.List<URL>
search(String search, boolean regExp)
Searches for a classname.-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
search
public List<URL> search(String search, boolean regExp)
Searches for a classname.- Parameters:
search
- the search string to findregExp
- true if the search string is a regular expression- Returns:
- the matching URLs
-
main
public static void main(String[] args)
For testing only.
Parameters: 'classname' 'regexp (true|false)'- Parameters:
args
- the commandline args
-
-