Package gw.internal.gosu.compiler
Class SingleServingGosuClassLoader
java.lang.Object
java.lang.ClassLoader
gw.internal.gosu.compiler.SingleServingGosuClassLoader
- All Implemented Interfaces:
IGosuClassLoader
- Direct Known Subclasses:
DiscreteClassLoader
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescription(package private) Class_defineClass(ICompilableType gsClass) voidassignParent(ClassLoader classLoader) static voidstatic voidclearCache(String gosuClassName) private byte[]compileClass(ICompilableType type, boolean debug) defineClass(String name, byte[] bytes) voidvoidevictLoader(String packageName) Class<?>byte[]getBytes(ICompilableType gsClass) static ClassgetCached(ICompilableType gsClass) getFunctionClassForArity(boolean hasReturn, int length) booleanprotected Class<?>private booleanshouldCache(ICompilableType gsClass) protected voidbooleanwaitForLoaderToUnload(String packageName, long millisToWait) Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gw.lang.reflect.gs.IGosuClassLoader
loadClass
-
Field Details
-
CACHE
-
_parent
-
_classes
-
-
Constructor Details
-
SingleServingGosuClassLoader
SingleServingGosuClassLoader() -
SingleServingGosuClassLoader
SingleServingGosuClassLoader(GosuClassLoader parent)
-
-
Method Details
-
getCached
-
clearCache
public static void clearCache() -
clearCache
-
findClass
- Specified by:
findClassin interfaceIGosuClassLoader- Overrides:
findClassin classClassLoader- Throws:
ClassNotFoundException
-
unload
-
loadClass
- Overrides:
loadClassin classClassLoader- Throws:
ClassNotFoundException
-
dumpAllClasses
public void dumpAllClasses()- Specified by:
dumpAllClassesin interfaceIGosuClassLoader
-
waitForLoaderToUnload
- Specified by:
waitForLoaderToUnloadin interfaceIGosuClassLoader
-
evictLoader
- Specified by:
evictLoaderin interfaceIGosuClassLoader
-
_defineClass
-
shouldCache
-
compileClass
-
getFunctionClassForArity
- Specified by:
getFunctionClassForArityin interfaceIGosuClassLoader
-
getActualLoader
- Specified by:
getActualLoaderin interfaceIGosuClassLoader
-
defineClass
- Specified by:
defineClassin interfaceIGosuClassLoader
-
getBytes
- Specified by:
getBytesin interfaceIGosuClassLoader
-
assignParent
- Specified by:
assignParentin interfaceIGosuClassLoader
-
isDisposed
public boolean isDisposed()
-