Class EclipseJavaScriptAnalysisEngine
java.lang.Object
com.ibm.wala.client.AbstractAnalysisEngine<InstanceKey,CallGraphBuilder<InstanceKey>,Void>
com.ibm.wala.ide.client.EclipseProjectAnalysisEngine<org.eclipse.wst.jsdt.core.IJavaScriptProject,InstanceKey>
com.ibm.wala.ide.client.EclipseProjectSourceAnalysisEngine<org.eclipse.wst.jsdt.core.IJavaScriptProject,InstanceKey>
com.ibm.wala.cast.js.client.EclipseJavaScriptAnalysisEngine
- All Implemented Interfaces:
AnalysisEngine
- Direct Known Subclasses:
EclipseWebAnalysisEngine
public class EclipseJavaScriptAnalysisEngine
extends EclipseProjectSourceAnalysisEngine<org.eclipse.wst.jsdt.core.IJavaScriptProject,InstanceKey>
-
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.ide.client.EclipseProjectSourceAnalysisEngine
defaultFileExt
Fields inherited from class com.ibm.wala.ide.client.EclipseProjectAnalysisEngine
ePath, project, workspaceRootPath
Fields inherited from class com.ibm.wala.client.AbstractAnalysisEngine
cg, DEBUG_LEVEL, j2seLibs, moduleFiles, pointerAnalysis, scope, SYNTHETIC_J2SE_MODEL
-
Constructor Summary
ConstructorDescriptionEclipseJavaScriptAnalysisEngine
(org.eclipse.wst.jsdt.core.IJavaScriptProject project, EclipseJavaScriptAnalysisEngine.BuilderType builderType) -
Method Summary
Modifier and TypeMethodDescriptionprotected JavaScriptEclipseProjectPath
createProjectPath
(org.eclipse.wst.jsdt.core.IJavaScriptProject project) protected CallGraphBuilder
<InstanceKey> getCallGraphBuilder
(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache) getDefaultOptions
(Iterable<Entrypoint> entrypoints) Get the default analysis options appropriate for this engineprotected Pair
<JSCallGraph, PointerAnalysis<ObjectVertex>> getFieldBasedCallGraph
(Iterable<Entrypoint> roots) getFieldBasedCallGraph
(String scriptName) protected ClassLoaderReference
protected AnalysisScope
protected ClassLoaderFactory
makeClassLoaderFactory
(SetOfClasses exclusions) we don't provide a default implementation of this method to avoid introducing a dependence on com.ibm.wala.cast from this projectprotected Iterable
<Entrypoint> Methods inherited from class com.ibm.wala.ide.client.EclipseProjectAnalysisEngine
buildAnalysisScope, getClassHierarchy, getEclipseProjectPath
Methods inherited from class com.ibm.wala.client.AbstractAnalysisEngine
addApplicationModulesToScope, buildCallGraph, buildClassHierarchy, buildDefaultCallGraph, defaultCallGraphBuilder, getCache, getCallGraph, getHeapGraph, getOptions, getPointerAnalysis, getScope, getSDG, isClosedWorld, performAnalysis, setClassHierarchy, setClosedWorld, setEntrypointBuilder, setExclusionsFile, setJ2SELibraries, setJ2SELibraries, setModuleFiles
-
Constructor Details
-
EclipseJavaScriptAnalysisEngine
public EclipseJavaScriptAnalysisEngine(org.eclipse.wst.jsdt.core.IJavaScriptProject project, EclipseJavaScriptAnalysisEngine.BuilderType builderType)
-
-
Method Details
-
getDefaultOptions
Description copied from interface:AnalysisEngine
Get the default analysis options appropriate for this engine- Specified by:
getDefaultOptions
in interfaceAnalysisEngine
- Overrides:
getDefaultOptions
in classEclipseProjectSourceAnalysisEngine<org.eclipse.wst.jsdt.core.IJavaScriptProject,
InstanceKey>
-
getExclusionsFile
- Overrides:
getExclusionsFile
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void>
-
makeDefaultEntrypoints
- Overrides:
makeDefaultEntrypoints
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void>
-
makeClassLoaderFactory
- Overrides:
makeClassLoaderFactory
in classAbstractAnalysisEngine<InstanceKey,
CallGraphBuilder<InstanceKey>, Void>
-
makeAnalysisScope
- Specified by:
makeAnalysisScope
in classEclipseProjectAnalysisEngine<org.eclipse.wst.jsdt.core.IJavaScriptProject,
InstanceKey>
-
createProjectPath
protected JavaScriptEclipseProjectPath createProjectPath(org.eclipse.wst.jsdt.core.IJavaScriptProject project) throws IOException, org.eclipse.core.runtime.CoreException - Specified by:
createProjectPath
in classEclipseProjectAnalysisEngine<org.eclipse.wst.jsdt.core.IJavaScriptProject,
InstanceKey> - Throws:
IOException
org.eclipse.core.runtime.CoreException
-
getSourceLoader
- Specified by:
getSourceLoader
in classEclipseProjectSourceAnalysisEngine<org.eclipse.wst.jsdt.core.IJavaScriptProject,
InstanceKey>
-
makeDefaultCache
Description copied from class:EclipseProjectSourceAnalysisEngine
we don't provide a default implementation of this method to avoid introducing a dependence on com.ibm.wala.cast from this project- Specified by:
makeDefaultCache
in classEclipseProjectSourceAnalysisEngine<org.eclipse.wst.jsdt.core.IJavaScriptProject,
InstanceKey>
-
getCallGraphBuilder
protected CallGraphBuilder<InstanceKey> getCallGraphBuilder(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache) - Specified by:
getCallGraphBuilder
in classEclipseProjectAnalysisEngine<org.eclipse.wst.jsdt.core.IJavaScriptProject,
InstanceKey>
-
getFieldBasedCallGraph
public Pair<JSCallGraph,PointerAnalysis<ObjectVertex>> getFieldBasedCallGraph() throws CancelException- Throws:
CancelException
-
getFieldBasedCallGraph
public Pair<JSCallGraph,PointerAnalysis<ObjectVertex>> getFieldBasedCallGraph(String scriptName) throws CancelException - Throws:
CancelException
-
getFieldBasedCallGraph
protected Pair<JSCallGraph,PointerAnalysis<ObjectVertex>> getFieldBasedCallGraph(Iterable<Entrypoint> roots) throws CancelException - Throws:
CancelException
-