Class SimpleClassesProvider
- java.lang.Object
-
- io.github.mkoncek.classpathless.impl.SimpleClassesProvider
-
- All Implemented Interfaces:
ClassesProvider
public class SimpleClassesProvider extends java.lang.Object implements ClassesProvider
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ClassIdentifier,IdentifiedBytecode>
classes
-
Constructor Summary
Constructors Constructor Description SimpleClassesProvider()
SimpleClassesProvider(java.util.Collection<IdentifiedBytecode> bytecodes)
-
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 compiler is missing.java.util.List<java.lang.String>
getClassPathListing()
Warning: may include lambdas and will include inner classes with $notations.
-
-
-
Field Detail
-
classes
private java.util.Map<ClassIdentifier,IdentifiedBytecode> classes
-
-
Constructor Detail
-
SimpleClassesProvider
public SimpleClassesProvider(java.util.Collection<IdentifiedBytecode> bytecodes)
-
SimpleClassesProvider
public SimpleClassesProvider()
-
-
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 compiler is missing.- Specified by:
getClass
in interfaceClassesProvider
- Parameters:
names
- names of classes the provider should return- Returns:
- bytecode of all found classes
-
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 classpath
-
-