Package com.github.toolarium.common.util
Class ClassPathUtil.ClassList
java.lang.Object
com.github.toolarium.common.util.ClassPathUtil.ClassList
- Enclosing class:
ClassPathUtil
This class holds the class names
-
Method Summary
Modifier and TypeMethodDescriptiongetClasses(String name) Gets a list of class names backgetClassesFromPackage(String packageName) Gets a list of class names backiterator()Gets an iterator to go through the class namessearchClasses(String regExp) Search class which are mapping to the given regular expressionsearchFiles(String regExp) Search file which are mapping to the given regular expressionsearchFilesAsURL(String regExp) Search file which are mapping to the given regular expressiontoString()toString
-
Method Details
-
getClasses
Gets a list of class names back- Parameters:
name- the name of the class with or without package name- Returns:
- a list with full qualified class names
-
searchClasses
Search class which are mapping to the given regular expression- Parameters:
regExp- the search regular expression- Returns:
- a list with full qualified class names
-
searchFiles
Search file which are mapping to the given regular expression- Parameters:
regExp- the search regular expression- Returns:
- a list with full qualified class names
-
searchFilesAsURL
Search file which are mapping to the given regular expression- Parameters:
regExp- the search regular expression- Returns:
- a list with full qualified class names
-
getClassesFromPackage
Gets a list of class names back- Parameters:
packageName- the name of the package- Returns:
- a list with full qualified class names
-
iterator
Gets an iterator to go through the class names- Returns:
- the iterator
-
toString
toString
-