Class NullClassesProvider
- java.lang.Object
-
- io.github.mkoncek.classpathless.helpers.NullClassesProvider
-
- All Implemented Interfaces:
ClassesProvider
public class NullClassesProvider extends java.lang.Object implements ClassesProvider
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,IdentifiedBytecode>
nameToBytecode
-
Constructor Summary
Constructors Constructor Description NullClassesProvider()
NullClassesProvider(java.util.Map<java.lang.String,IdentifiedBytecode> initialMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
nameToBytecode
private java.util.Map<java.lang.String,IdentifiedBytecode> nameToBytecode
-
-
Constructor Detail
-
NullClassesProvider
public NullClassesProvider(java.util.Map<java.lang.String,IdentifiedBytecode> initialMapping)
-
NullClassesProvider
public NullClassesProvider()
-
-
Method Detail
-
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 interfaceClassesProvider
- Returns:
- All fully qualified classes visible from the provider's classpath.
-
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 interfaceClassesProvider
- Parameters:
names
- Names of classes the provider should return.- Returns:
- The bytecode files of all found classes. Must not be null.
-
-