Class CAstAnalysisScope
java.lang.Object
com.ibm.wala.ipa.callgraph.AnalysisScope
com.ibm.wala.cast.ipa.callgraph.CAstAnalysisScope
-
Field Summary
Fields inherited from class com.ibm.wala.ipa.callgraph.AnalysisScope
APPLICATION, EXTENSION, loadersByName, PRIMORDIAL, SYNTHETIC
-
Constructor Summary
ConstructorDescriptionCAstAnalysisScope
(SingleClassLoaderFactory loaders, Collection<Language> languages) CAstAnalysisScope
(Module[] sources, SingleClassLoaderFactory loaders, Collection<Language> languages) CAstAnalysisScope
(String[] sourceFileNames, SingleClassLoaderFactory loaders, Collection<Language> languages) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClassFileToScope
(ClassLoaderReference loader, File file) Add a class file to the scope for a loaderReturn the information regarding the application loader.Return the information regarding the extension loader.int
Return the information regarding the primordial loader.Return the information regarding the application loader.toString()
Methods inherited from class com.ibm.wala.ipa.callgraph.AnalysisScope
addInputStreamForJarToScope, addJDKModuleToScope, addSourceFileToScope, addToScope, addToScope, addToScope, addToScopeHead, classLoaderName2Ref, createJavaAnalysisScope, findMethod, getBaseLanguages, getExclusions, getExclusionString, getJavaLibraryVersion, getLanguage, getLanguages, getLoaderImpl, getModules, initCoreForJava, initForJava, initSynthetic, isApplicationLoader, isJava14Libraries, isJava15Libraries, isJava16Libraries, isJava17Libraries, isJava18Libraries, setExclusions, setLoaderImpl, toJson, toShallowAnalysisScope
-
Constructor Details
-
CAstAnalysisScope
-
CAstAnalysisScope
public CAstAnalysisScope(String[] sourceFileNames, SingleClassLoaderFactory loaders, Collection<Language> languages) -
CAstAnalysisScope
public CAstAnalysisScope(Module[] sources, SingleClassLoaderFactory loaders, Collection<Language> languages)
-
-
Method Details
-
getPrimordialLoader
Return the information regarding the primordial loader.- Overrides:
getPrimordialLoader
in classAnalysisScope
- Returns:
- ClassLoaderReference
-
getExtensionLoader
Return the information regarding the extension loader.- Overrides:
getExtensionLoader
in classAnalysisScope
- Returns:
- ClassLoaderReference
-
getApplicationLoader
Return the information regarding the application loader.- Overrides:
getApplicationLoader
in classAnalysisScope
- Returns:
- ClassLoaderReference
-
getArrayClassLoader
- Overrides:
getArrayClassLoader
in classAnalysisScope
- Returns:
- Returns the arrayClassLoader.
-
getSyntheticLoader
Return the information regarding the application loader.- Overrides:
getSyntheticLoader
in classAnalysisScope
- Returns:
- ClassLoaderReference
-
addClassFileToScope
Add a class file to the scope for a loader- Overrides:
addClassFileToScope
in classAnalysisScope
-
getLoader
- Overrides:
getLoader
in classAnalysisScope
- Returns:
- the ClassLoaderReference specified by
name
.
-
getLoaders
- Overrides:
getLoaders
in classAnalysisScope
-
getNumberOfLoaders
public int getNumberOfLoaders()- Overrides:
getNumberOfLoaders
in classAnalysisScope
- Returns:
- the number of loaders.
-
toString
- Overrides:
toString
in classAnalysisScope
-