Class FieldBasedCGUtil
java.lang.Object
com.ibm.wala.cast.js.util.FieldBasedCGUtil
Utility class for building call graphs.
- Author:
- mschaefer
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildBoundedCG
(JavaScriptLoaderFactory loaders, Module[] scripts, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Integer bound) buildCG
(JavaScriptLoaderFactory loaders, Module[] scripts, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) buildCG
(URL url, FieldBasedCGUtil.BuilderType builderType, boolean supportFullPointerAnalysis, Supplier<JSSourceExtractor> fExtractor) buildCG
(URL url, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Supplier<JSSourceExtractor> fExtractor) buildPageCG
(URL url, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Supplier<JSSourceExtractor> fExtractor) buildScriptCG
(URL url, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) buildScriptDirBoundedCG
(Path scriptDir, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Integer bound) Construct a bounded field-based call graph using all the.js
files appearing in scriptDir or any of its sub-directoriesbuildScriptDirCG
(Path scriptDir, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) Construct a field-based call graph using all the.js
files appearing in scriptDir or any of its sub-directoriesbuildTestCG
(String dir, String name, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) findScriptsInDir
(Path scriptDir)
-
Constructor Details
-
FieldBasedCGUtil
-
-
Method Details
-
buildCG
public FieldBasedCallGraphBuilder.CallGraphResult buildCG(URL url, FieldBasedCGUtil.BuilderType builderType, boolean supportFullPointerAnalysis, Supplier<JSSourceExtractor> fExtractor) throws WalaException, CancelException - Throws:
WalaException
CancelException
-
buildCG
public FieldBasedCallGraphBuilder.CallGraphResult buildCG(URL url, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Supplier<JSSourceExtractor> fExtractor) throws WalaException, CancelException - Throws:
WalaException
CancelException
-
buildScriptCG
public FieldBasedCallGraphBuilder.CallGraphResult buildScriptCG(URL url, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) throws WalaException, CancelException - Throws:
WalaException
CancelException
-
buildScriptDirCG
public FieldBasedCallGraphBuilder.CallGraphResult buildScriptDirCG(Path scriptDir, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) throws WalaException, CancelException, IOException Construct a field-based call graph using all the.js
files appearing in scriptDir or any of its sub-directories- Throws:
WalaException
CancelException
IOException
-
buildScriptDirBoundedCG
public FieldBasedCallGraphBuilder.CallGraphResult buildScriptDirBoundedCG(Path scriptDir, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Integer bound) throws WalaException, CancelException, IOException Construct a bounded field-based call graph using all the.js
files appearing in scriptDir or any of its sub-directories- Throws:
WalaException
CancelException
IOException
-
findScriptsInDir
- Throws:
IOException
-
buildTestCG
public FieldBasedCallGraphBuilder.CallGraphResult buildTestCG(String dir, String name, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) throws IOException, WalaException, CancelException - Throws:
IOException
WalaException
CancelException
-
buildPageCG
public FieldBasedCallGraphBuilder.CallGraphResult buildPageCG(URL url, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Supplier<JSSourceExtractor> fExtractor) throws WalaException, CancelException - Throws:
WalaException
CancelException
-
buildCG
public FieldBasedCallGraphBuilder.CallGraphResult buildCG(JavaScriptLoaderFactory loaders, Module[] scripts, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) throws WalaException, CancelException - Throws:
WalaException
CancelException
-
buildBoundedCG
public FieldBasedCallGraphBuilder.CallGraphResult buildBoundedCG(JavaScriptLoaderFactory loaders, Module[] scripts, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Integer bound) throws WalaException, CancelException - Throws:
WalaException
CancelException
-