@FunctionalInterface public interface ClassProvider
| Modifier and Type | Method and Description |
|---|---|
byte[] |
get(String klass)
Gets the given class, represented as a byte array.
|
default org.objectweb.asm.tree.ClassNode |
getAsNode(String klass)
Gets the given class, represented as a
ClassNode. |
default org.objectweb.asm.tree.ClassNode |
getAsNode(String klass,
int parsingOptions)
Gets the given class, represented as a
ClassNode. |
static ClassProvider |
of(ClassLoader loader)
Creates a class provider for the given
ClassLoader. |
static ClassProvider |
of(JarFile jar)
Creates a class provider for the given
JarFile. |
static ClassProvider of(ClassLoader loader)
ClassLoader.loader - The class loaderstatic ClassProvider of(JarFile jar)
JarFile.jar - The jar filebyte[] get(String klass)
klass - The name of the classnull if unavailabledefault org.objectweb.asm.tree.ClassNode getAsNode(String klass, int parsingOptions)
ClassNode.klass - The name of the classparsingOptions - The parsing optionsnull if unavailabledefault org.objectweb.asm.tree.ClassNode getAsNode(String klass)
ClassNode.klass - The name of the class