Package cz.o2.proxima.tools.groovy
Class ToolsClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- groovy.lang.GroovyClassLoader
-
- cz.o2.proxima.tools.groovy.ToolsClassLoader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ToolsClassLoader extends groovy.lang.GroovyClassLoader
GroovyClassLoader
keeping track of generated bytecode.
-
-
Constructor Summary
Constructors Constructor Description ToolsClassLoader()
-
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.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
-
-
-
-
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 classgroovy.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)
-
-