public final class ClassNodeLoader
extends java.lang.ClassLoader
Constructor and Description |
---|
ClassNodeLoader() |
Modifier and Type | Method and Description |
---|---|
void |
addClass(org.objectweb.asm.tree.ClassNode cn)
Adds the provided class node to the class loader
|
void |
clear()
Clears out all class nodes
|
boolean |
contains(java.lang.String name) |
java.lang.Class<?> |
findClass(java.lang.String name) |
org.objectweb.asm.tree.ClassNode |
get(java.lang.String name) |
java.util.Collection<org.objectweb.asm.tree.ClassNode> |
getAll() |
java.util.Collection<java.lang.Class<?>> |
getAllClasses() |
java.lang.Class<?> |
loadClass(java.lang.String className) |
java.lang.Class<?> |
nodeToClass(org.objectweb.asm.tree.ClassNode node)
Converts a class node to a class
|
public void addClass(org.objectweb.asm.tree.ClassNode cn)
name
- The class namecontents
- The contents of the class (or data)public boolean contains(java.lang.String name)
name
- The name of the classpublic java.util.Collection<org.objectweb.asm.tree.ClassNode> getAll()
public void clear()
public java.util.Collection<java.lang.Class<?>> getAllClasses()
public org.objectweb.asm.tree.ClassNode get(java.lang.String name)
name
- The name of the classpublic java.lang.Class<?> loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public java.lang.Class<?> nodeToClass(org.objectweb.asm.tree.ClassNode node)
node
- The node to convert