Class EclipseProjectSourceAnalysisEngine<P, I extends InstanceKey>
java.lang.Object
com.ibm.wala.client.AbstractAnalysisEngine<I, CallGraphBuilder<I>, Void>
com.ibm.wala.ide.client.EclipseProjectAnalysisEngine<P,I>
com.ibm.wala.ide.client.EclipseProjectSourceAnalysisEngine<P,I>
- All Implemented Interfaces:
AnalysisEngine
- Direct Known Subclasses:
EclipseJavaScriptAnalysisEngine, JDTJavaSourceAnalysisEngine
public abstract class EclipseProjectSourceAnalysisEngine<P, I extends InstanceKey>
extends EclipseProjectAnalysisEngine<P,I>
An
EclipseProjectAnalysisEngine specialized for source code analysis-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractAnalysisEngine
AbstractAnalysisEngine.EntrypointBuilder -
Field Summary
FieldsFields inherited from class EclipseProjectAnalysisEngine
ePath, project, workspaceRootPathModifier and TypeFieldDescriptionprotected EclipseProjectPath<?, P> protected final Pprotected final org.eclipse.core.runtime.IPathFields inherited from class AbstractAnalysisEngine
cg, DEBUG_LEVEL, j2seLibs, moduleFiles, pointerAnalysis, scope, SYNTHETIC_J2SE_MODELModifier and TypeFieldDescriptionprotected CallGraphGoverning call graphprotected static final intDEBUG_LEVEL: 0 No output 1 Print some simple stats and warning information 2 Detailed debuggingprotected Module[]The standard J2SE libraries to analyzeprotected Collection<? extends Module> The modules to analyzeprotected PointerAnalysis<I> Results of pointer analysisprotected AnalysisScopeA representation of the analysis scopestatic final String -
Constructor Summary
ConstructorsConstructorDescriptionEclipseProjectSourceAnalysisEngine(P project) EclipseProjectSourceAnalysisEngine(P project, String fileExt) -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultOptions(Iterable<Entrypoint> entrypoints) Get the default analysis options appropriate for this engineprotected abstract ClassLoaderReferenceabstract IAnalysisCacheViewwe don't provide a default implementation of this method to avoid introducing a dependence on com.ibm.wala.cast from this projectMethods inherited from class EclipseProjectAnalysisEngine
buildAnalysisScope, createProjectPath, getCallGraphBuilder, getClassHierarchy, getEclipseProjectPath, makeAnalysisScopeModifier and TypeMethodDescriptionvoidSet up the AnalysisScope objectprotected abstract EclipseProjectPath<?, P> createProjectPath(P project) protected abstract CallGraphBuilder<I> getCallGraphBuilder(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache) protected abstract AnalysisScopeMethods inherited from class AbstractAnalysisEngine
addApplicationModulesToScope, buildCallGraph, buildClassHierarchy, buildDefaultCallGraph, defaultCallGraphBuilder, getCache, getCallGraph, getExclusionsFile, getHeapGraph, getOptions, getPointerAnalysis, getScope, getSDG, isClosedWorld, makeClassLoaderFactory, makeDefaultEntrypoints, performAnalysis, setClassHierarchy, setClosedWorld, setEntrypointBuilder, setExclusionsFile, setJ2SELibraries, setJ2SELibraries, setModuleFilesModifier and TypeMethodDescriptionprotected voidAdd the application modules to the analysis scope.protected CallGraphBuilder<I> buildCallGraph(IClassHierarchy cha, AnalysisOptions options, boolean savePointerAnalysis, MonitorUtil.IProgressMonitor monitor) Builds the call graph for the analysis scope in effect, using all of the given entry points.getCache()protected CallGraphHeapGraph<?> PointerAnalysis<? super I> protected AnalysisScopegetScope()booleanprotected ClassLoaderFactorymakeClassLoaderFactory(StringFilter exclusions) protected Iterable<Entrypoint> protected IClassHierarchyvoidsetClosedWorld(boolean b) Specify whether the engine should or should not employ "closed-world" analysis.voidvoidsetExclusionsFile(String exclusionsFile) voidsetJ2SELibraries(Module[] libs) Specify the mdoules that represent the standard J2SE librariesvoidsetJ2SELibraries(JarFile[] libs) Specify the jar files that represent the standard J2SE librariesvoidsetModuleFiles(Collection<? extends Module> moduleFiles) Specify the list of modules that should be analyzed.
-
Field Details
-
defaultFileExt
- See Also:
-
-
Constructor Details
-
EclipseProjectSourceAnalysisEngine
-
EclipseProjectSourceAnalysisEngine
-
-
Method Details
-
makeDefaultCache
we don't provide a default implementation of this method to avoid introducing a dependence on com.ibm.wala.cast from this project- Overrides:
makeDefaultCachein classAbstractAnalysisEngine<I extends InstanceKey, CallGraphBuilder<I extends InstanceKey>, Void>
-
getSourceLoader
-
getDefaultOptions
Description copied from interface:AnalysisEngineGet the default analysis options appropriate for this engine- Specified by:
getDefaultOptionsin interfaceAnalysisEngine- Overrides:
getDefaultOptionsin classAbstractAnalysisEngine<I extends InstanceKey, CallGraphBuilder<I extends InstanceKey>, Void>
-