Package io.github.mkoncek.classpathless
Class ClasspathClassesProvider
- java.lang.Object
-
- io.github.mkoncek.classpathless.ClasspathClassesProvider
-
- All Implemented Interfaces:
ClassesProvider
public class ClasspathClassesProvider extends java.lang.Object implements ClassesProvider
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,java.nio.file.Path>classesToClassFilePathsjava.util.List<java.lang.String>classpath(package private) static java.lang.StringCP_SEPARATOR
-
Constructor Summary
Constructors Constructor Description ClasspathClassesProvider(java.lang.String classpath)
-
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)
-
-
-
Method Detail
-
getClass
public java.util.Collection<IdentifiedBytecode> getClass(ClassIdentifier... names)
Description copied from interface:ClassesProviderCallback for compiler which provides, on demand, the dependencies the compiler is missing.- Specified by:
getClassin interfaceClassesProvider- 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:ClassesProviderWarning: may include lambdas and will include inner classes with $-notations. Intentionally not using ClassIdentifier, but may change to it.- Specified by:
getClassPathListingin interfaceClassesProvider- 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)
-
-