Class SingleClassLoaderFactory
java.lang.Object
com.ibm.wala.cast.loader.SingleClassLoaderFactory
- All Implemented Interfaces:
ClassLoaderFactory
- Direct Known Subclasses:
JavaScriptLoaderFactory
Abstract
ClassLoaderFactory
for languages modeled as having a single class loader.
Subclasses provide the logic to create the classloader.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLoader
(ClassLoaderReference classLoaderReference, IClassHierarchy cha, AnalysisScope scope) Return a class loader corresponding to a given class loader identifier.abstract ClassLoaderReference
get the reference to the single class loader for the languageprotected abstract IClassLoader
-
Constructor Details
-
SingleClassLoaderFactory
public SingleClassLoaderFactory()
-
-
Method Details
-
getLoader
public IClassLoader getLoader(ClassLoaderReference classLoaderReference, IClassHierarchy cha, AnalysisScope scope) Description copied from interface:ClassLoaderFactory
Return a class loader corresponding to a given class loader identifier. Create one if necessary.- Specified by:
getLoader
in interfaceClassLoaderFactory
- Parameters:
classLoaderReference
- identifier for the desired class loader- Returns:
- IClassLoader
-
getTheLoader
-
getTheReference
get the reference to the single class loader for the language -
makeTheLoader
-