Class JavaSourceAnalysisEngine
java.lang.Object
com.ibm.wala.client.AbstractAnalysisEngine<InstanceKey,CallGraphBuilder<InstanceKey>,Void>
com.ibm.wala.cast.java.client.JavaSourceAnalysisEngine
- All Implemented Interfaces:
AnalysisEngine
- Direct Known Subclasses:
ECJJavaSourceAnalysisEngine
public abstract class JavaSourceAnalysisEngine
extends AbstractAnalysisEngine<InstanceKey,CallGraphBuilder<InstanceKey>,Void>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ibm.wala.client.AbstractAnalysisEngine
AbstractAnalysisEngine.EntrypointBuilder
-
Field Summary
Fields inherited from class com.ibm.wala.client.AbstractAnalysisEngine
cg, DEBUG_LEVEL, j2seLibs, moduleFiles, pointerAnalysis, scope, SYNTHETIC_J2SE_MODEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add the application modules to the analysis scope.void
Adds the given compiled module to the application loader's module list.void
Adds the given source module to the source loader's module list.void
Adds the given module to the primordial loader's module list.void
Set up the AnalysisScope objectprotected AstJavaZeroXCFABuilder
getCallGraphBuilder
(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache) protected abstract ClassLoaderFactory
getClassLoaderFactory
(SetOfClasses exclusions) getDefaultOptions
(Iterable<Entrypoint> entrypoints) Get the default analysis options appropriate for this engineprotected Iterable
<Entrypoint> protected AnalysisScope
Methods inherited from class com.ibm.wala.client.AbstractAnalysisEngine
buildCallGraph, buildDefaultCallGraph, defaultCallGraphBuilder, getCache, getCallGraph, getClassHierarchy, getExclusionsFile, getHeapGraph, getPointerAnalysis, getScope, getSDG, isClosedWorld, makeClassLoaderFactory, performAnalysis, setClassHierarchy, setClosedWorld, setEntrypointBuilder, setExclusionsFile, setJ2SELibraries, setJ2SELibraries, setModuleFiles
-
Constructor Details
-
JavaSourceAnalysisEngine
public JavaSourceAnalysisEngine()
-
-
Method Details
-
addSourceModule
Adds the given source module to the source loader's module list. Clients should/may call this method if they don't supply an IJavaProject to the constructor. -
addCompiledModule
Adds the given compiled module to the application loader's module list. Clients should/may call this method if they don't supply an IJavaProject to the constructor. -
addSystemModule
Adds the given module to the primordial loader's module list. Clients should/may call this method if they don't supply an IJavaProject to the constructor. -
addApplicationModulesToScope
protected void addApplicationModulesToScope()Description copied from class:AbstractAnalysisEngine
Add the application modules to the analysis scope.- Overrides:
addApplicationModulesToScope
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void>
-
buildAnalysisScope
Description copied from class:AbstractAnalysisEngine
Set up the AnalysisScope object- Overrides:
buildAnalysisScope
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void> - Throws:
IOException
-
makeSourceAnalysisScope
-
getClassLoaderFactory
-
buildClassHierarchy
- Overrides:
buildClassHierarchy
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void> - Returns:
- a IClassHierarchy object for this analysis scope
-
makeDefaultEntrypoints
- Overrides:
makeDefaultEntrypoints
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void>
-
makeDefaultCache
- Overrides:
makeDefaultCache
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void>
-
getOptions
- Overrides:
getOptions
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void>
-
getDefaultOptions
Description copied from interface:AnalysisEngine
Get the default analysis options appropriate for this engine- Specified by:
getDefaultOptions
in interfaceAnalysisEngine
- Overrides:
getDefaultOptions
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void>
-
getCallGraphBuilder
protected AstJavaZeroXCFABuilder getCallGraphBuilder(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache) - Specified by:
getCallGraphBuilder
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void>
-