Class ClassPathUtil.ClassList

java.lang.Object
com.github.toolarium.common.util.ClassPathUtil.ClassList
Enclosing class:
ClassPathUtil

public final class ClassPathUtil.ClassList extends Object
This class holds the class names
  • Method Details

    • getClasses

      public List<String> getClasses(String name)
      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

      public List<String> searchClasses(String regExp)
      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

      public List<String> searchFiles(String regExp)
      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

      public List<URL> searchFilesAsURL(String regExp)
      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

      public List<String> getClassesFromPackage(String packageName)
      Gets a list of class names back
      Parameters:
      packageName - the name of the package
      Returns:
      a list with full qualified class names
    • iterator

      public Iterator<String> iterator()
      Gets an iterator to go through the class names
      Returns:
      the iterator
    • toString

      public String toString()
      toString
      Overrides:
      toString in class Object