Class GeneratedClassLoader


  • public class GeneratedClassLoader
    extends ClassLoader
    A class loader that actually produces real Java classes from GeneratedCodeClass instances.
    Author:
    Thomas Down, Matthew Pocock
    • Constructor Detail

      • GeneratedClassLoader

        public GeneratedClassLoader​(ClassLoader parent)
        Create a new loader with an explicitly set parent class loader.
        Parameters:
        parent - the parent ClassLoader
    • Method Detail

      • hasGeneratedClass

        public boolean hasGeneratedClass​(String name)
        Discover if a class for this name has already been defined by this class loader.
        Parameters:
        name - the name of the class
        Returns:
        true if the class has already been defined by this loader