Class ClasspathClassesProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Map<java.lang.String,​java.nio.file.Path> classesToClassFilePaths  
      java.util.List<java.lang.String> classpath  
      (package private) static java.lang.String CP_SEPARATOR  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.util.Map<java.lang.String,​java.nio.file.Path> findAllClasses​(java.util.List<java.lang.String> classpath)  
      java.util.Collection<IdentifiedBytecode> getClass​(ClassIdentifier... names)
      Callback for compiler which provides, on demand, the dependencies the compiler is missing.
      java.util.List<java.lang.String> getClassPathListing()
      Warning: may include lambdas and will include inner classes with $-notations.
      (package private) static java.util.List<java.lang.String> obtainClasspath​(java.lang.String classpath)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CP_SEPARATOR

        static final java.lang.String CP_SEPARATOR
      • classpath

        public java.util.List<java.lang.String> classpath
      • classesToClassFilePaths

        public java.util.Map<java.lang.String,​java.nio.file.Path> classesToClassFilePaths
    • Constructor Detail

      • ClasspathClassesProvider

        public ClasspathClassesProvider​(java.lang.String classpath)
    • Method Detail

      • getClass

        public java.util.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 java.util.List<java.lang.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 java.util.List<java.lang.String> obtainClasspath​(java.lang.String classpath)
        Parameters:
        classpath -
        Returns:
        Dummy list of strings representing the roots and /* expanded to jar files
      • findAllClasses

        static java.util.Map<java.lang.String,​java.nio.file.Path> findAllClasses​(java.util.List<java.lang.String> classpath)