Class ToolsClassLoader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ToolsClassLoader
    extends groovy.lang.GroovyClassLoader
    GroovyClassLoader keeping track of generated bytecode.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class groovy.lang.GroovyClassLoader

        groovy.lang.GroovyClassLoader.ClassCollector, groovy.lang.GroovyClassLoader.InnerLoader
    • Field Summary

      • Fields inherited from class groovy.lang.GroovyClassLoader

        classCache, sourceCache
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected groovy.lang.GroovyClassLoader.ClassCollector createCollector​(org.codehaus.groovy.control.CompilationUnit unit, org.codehaus.groovy.control.SourceUnit su)  
      java.util.Set<java.net.URI> getAddedURLs()  
      byte[] getClassByteCode​(java.lang.String name)  
      org.codehaus.groovy.control.CompilerConfiguration getConfiguration()  
      java.util.Set<java.lang.String> getDefinedClasses()  
      • Methods inherited from class groovy.lang.GroovyClassLoader

        addClasspath, addURL, clearCache, close, createCompilationUnit, defineClass, defineClass, genEncodingString, generateScriptName, getClassCacheEntry, getClassPath, getLoadedClasses, getPermissions, getResourceLoader, getTimeStamp, hasCompatibleConfiguration, isRecompilable, isShouldRecompile, isSourceNewer, loadClass, loadClass, loadClass, loadClass, parseClass, parseClass, parseClass, parseClass, parseClass, parseClass, recompile, removeClassCacheEntry, setClassCacheEntry, setResourceLoader, setShouldRecompile
      • Methods inherited from class java.net.URLClassLoader

        definePackage, findClass, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance
      • Methods inherited from class java.security.SecureClassLoader

        defineClass, defineClass
      • Methods inherited from class java.lang.ClassLoader

        clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ToolsClassLoader

        public ToolsClassLoader()
    • Method Detail

      • getConfiguration

        public org.codehaus.groovy.control.CompilerConfiguration getConfiguration()
      • createCollector

        protected groovy.lang.GroovyClassLoader.ClassCollector createCollector​(org.codehaus.groovy.control.CompilationUnit unit,
                                                                               org.codehaus.groovy.control.SourceUnit su)
        Overrides:
        createCollector in class groovy.lang.GroovyClassLoader
      • getDefinedClasses

        public java.util.Set<java.lang.String> getDefinedClasses()
      • getAddedURLs

        public java.util.Set<java.net.URI> getAddedURLs()
      • getClassByteCode

        public byte[] getClassByteCode​(java.lang.String name)