Class FieldBasedCGUtil
java.lang.Object
com.ibm.wala.cast.js.util.FieldBasedCGUtil
Utility class for building call graphs.
- Author:
- mschaefer
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
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.jsfiles 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.jsfiles 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:
WalaExceptionCancelException
-
buildCG
public FieldBasedCallGraphBuilder.CallGraphResult buildCG(URL url, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Supplier<JSSourceExtractor> fExtractor) throws WalaException, CancelException - Throws:
WalaExceptionCancelException
-
buildScriptCG
public FieldBasedCallGraphBuilder.CallGraphResult buildScriptCG(URL url, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) throws WalaException, CancelException - Throws:
WalaExceptionCancelException
-
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.jsfiles appearing in scriptDir or any of its sub-directories- Throws:
WalaExceptionCancelExceptionIOException
-
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.jsfiles appearing in scriptDir or any of its sub-directories- Throws:
WalaExceptionCancelExceptionIOException
-
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:
IOExceptionWalaExceptionCancelException
-
buildPageCG
public FieldBasedCallGraphBuilder.CallGraphResult buildPageCG(URL url, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Supplier<JSSourceExtractor> fExtractor) throws WalaException, CancelException - Throws:
WalaExceptionCancelException
-
buildCG
public FieldBasedCallGraphBuilder.CallGraphResult buildCG(JavaScriptLoaderFactory loaders, Module[] scripts, FieldBasedCGUtil.BuilderType builderType, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis) throws WalaException, CancelException - Throws:
WalaExceptionCancelException
-
buildBoundedCG
public FieldBasedCallGraphBuilder.CallGraphResult buildBoundedCG(JavaScriptLoaderFactory loaders, Module[] scripts, MonitorUtil.IProgressMonitor monitor, boolean supportFullPointerAnalysis, Integer bound) throws WalaException, CancelException - Throws:
WalaExceptionCancelException
-