Class JavaSourceAnalysisScope
java.lang.Object
com.ibm.wala.ipa.callgraph.AnalysisScope
com.ibm.wala.cast.java.ipa.callgraph.JavaSourceAnalysisScope
-
Field Summary
FieldsFields inherited from class AnalysisScope
APPLICATION, EXTENSION, loadersByName, PRIMORDIAL, SYNTHETICModifier and TypeFieldDescriptionstatic final Atomstatic final Atomfinal LinkedHashMap<Atom, ClassLoaderReference> static final Atomstatic final Atom -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJavaSourceAnalysisScope(Collection<? extends Language> languages) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToScope(ClassLoaderReference loader, Module m) Add a module to the scope for a loaderprotected voidMethods inherited from class AnalysisScope
addClassFileToScope, addInputStreamForJarToScope, addJDKModuleToScope, addSourceFileToScope, addToScope, addToScope, addToScopeHead, classLoaderName2Ref, createJavaAnalysisScope, findMethod, getApplicationLoader, getArrayClassLoader, getBaseLanguages, getExclusions, getExclusionString, getExtensionLoader, getJavaLibraryVersion, getLanguage, getLanguages, getLoader, getLoaderImpl, getLoaders, getModules, getNumberOfLoaders, getPrimordialLoader, getSyntheticLoader, initCoreForJava, initForJava, initSynthetic, isApplicationLoader, isJava14Libraries, isJava15Libraries, isJava16Libraries, isJava17Libraries, isJava18Libraries, setExclusions, setExclusions, setLoaderImpl, toJson, toShallowAnalysisScope, toStringModifier and TypeMethodDescriptionvoidaddClassFileToScope(ClassLoaderReference loader, File file) Add a class file to the scope for a loadervoidaddInputStreamForJarToScope(ClassLoaderReference loader, InputStream stream) Add a jar file to the scope via anInputStream.voidaddJDKModuleToScope(String moduleName) Adds a module from the Java standard library to the analysis scope.voidaddSourceFileToScope(ClassLoaderReference loader, File file, String fileName) Add a class file to the scope for a loadervoidaddToScope(AnalysisScope other) Add all modules from another scopevoidaddToScope(ClassLoaderReference loader, JarFile file) Add a jar file to the scope for a loadervoidaddToScopeHead(ClassLoaderReference loader, Module m) Add a module file to the scope for a loader.protected ClassLoaderReferenceclassLoaderName2Ref(String clName) static AnalysisScopeCreate an analysis scope initialized for analysis of JavafindMethod(Atom loader, String klass, Atom name, ImmutableByteArray desc) Utility function.Return the information regarding the application loader.protected ObjectReturn the information regarding the extension loader.getLanguage(Atom name) getModules(ClassLoaderReference loader) intReturn the information regarding the primordial loader.Return the information regarding the application loader.protected voidInitialize the standard 3 class loaders for java analysisprotected voidInitialize a scope for java analysisprotected voidinitSynthetic(ClassLoaderReference parent) Create the class loader for synthetic classes.booleanisApplicationLoader(IClassLoader loader) booleanbooleanbooleanbooleanbooleanvoidsetExclusions(SetOfClasses classes) Deprecated, for removal: This API element is subject to removal in a future version.voidsetExclusions(StringFilter classes) voidsetLoaderImpl(ClassLoaderReference ref, String implClass) toJson()An AnalysisScope is converted to a JSON formatted variable using the loaders and exclusions hierarchy using ToJson.Creates a "serializable" version of the analysis scope.toString()
-
Field Details
-
SOURCE
-
-
Constructor Details
-
JavaSourceAnalysisScope
public JavaSourceAnalysisScope() -
JavaSourceAnalysisScope
-
-
Method Details
-
initCoreForJavaSource
protected void initCoreForJavaSource() -
getSourceLoader
-
addToScope
Description copied from class:AnalysisScopeAdd a module to the scope for a loader- Overrides:
addToScopein classAnalysisScope
-
AnalysisScope.setExclusions(StringFilter)} instead.