public class PathClassProvider extends java.lang.Object implements ClassProvider
ClassProvider.ClassSupplier| Constructor and Description |
|---|
PathClassProvider(java.nio.file.Path path) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,ClassProvider.ClassSupplier> |
getAllClasses()
Get a map of all classes that are available in this provider.
|
byte[] |
getClass(java.lang.String name)
Get the bytecode of a class by its name.
|
java.nio.file.Path |
getPath() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getClassNode, thenpublic java.nio.file.Path getPath()
@Nonnull
public byte[] getClass(java.lang.String name)
throws java.lang.ClassNotFoundException
ClassProvider"package/Name".ClassNotFoundException is thrown.getClass in interface ClassProvidername - The name of the classjava.lang.ClassNotFoundException - If the class could not be found@Nonnull public java.util.Map<java.lang.String,ClassProvider.ClassSupplier> getAllClasses()
ClassProviderUnsupportedOperationException if it is not supported."package/Name".getAllClasses in interface ClassProvider