Class ClasspathClassesProvider

java.lang.Object
io.github.mkoncek.classpathless.ClasspathClassesProvider
All Implemented Interfaces:
ClassesProvider

public class ClasspathClassesProvider extends Object implements ClassesProvider
  • Field Details

    • CP_SEPARATOR

      static final String CP_SEPARATOR
    • classpath

      public List<String> classpath
    • classesToClassFilePaths

      public Map<String,Path> classesToClassFilePaths
  • Constructor Details

    • ClasspathClassesProvider

      public ClasspathClassesProvider(String classpath)
  • Method Details

    • getClass

      public Collection<IdentifiedBytecode> getClass(ClassIdentifier... names)
      Description copied from interface: ClassesProvider
      Callback for compiler which provides, on demand, the dependencies the compiler is missing.
      Specified by:
      getClass in interface ClassesProvider
      Parameters:
      names - Names of classes the provider should return.
      Returns:
      The bytecode files of all found classes. Must not be null.
    • getClassPathListing

      public List<String> getClassPathListing()
      Description copied from interface: ClassesProvider
      Warning: may include lambdas and will include inner classes with $-notations. Intentionally not using ClassIdentifier, but may change to it.
      Specified by:
      getClassPathListing in interface ClassesProvider
      Returns:
      All fully qualified classes visible from the provider's classpath.
    • obtainClasspath

      static List<String> obtainClasspath(String classpath)
      Parameters:
      classpath -
      Returns:
      Dummy list of strings representing the roots and /* expanded to jar files
    • findAllClasses

      static Map<String,Path> findAllClasses(List<String> classpath)