Class JSCallGraphBuilderUtil
java.lang.Object
com.ibm.wala.cast.ipa.callgraph.CAstCallGraphUtil
com.ibm.wala.cast.js.ipa.callgraph.JSCallGraphUtil
com.ibm.wala.cast.js.util.JSCallGraphBuilderUtil
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ibm.wala.cast.js.ipa.callgraph.JSCallGraphUtil
JSCallGraphUtil.Bootstrap
-
Field Summary
Fields inherited from class com.ibm.wala.cast.js.ipa.callgraph.JSCallGraphUtil
translatorFactory
Fields inherited from class com.ibm.wala.cast.ipa.callgraph.CAstCallGraphUtil
AVOID_DUMP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic URL
getURLforFile
(String dir, String name, ClassLoader loader) protected static JSCFABuilder
makeCG
(JavaScriptLoaderFactory loaders, AnalysisScope scope, JSCallGraphBuilderUtil.CGBuilderType builderType, IRFactory<IMethod> irFactory) static JSCFABuilder
makeCGBuilder
(JavaScriptLoaderFactory loaders, Module[] scripts, JSCallGraphBuilderUtil.CGBuilderType builderType, IRFactory<IMethod> irFactory) static CallGraph
makeHTMLCG
(URL url) static CallGraph
makeHTMLCG
(URL url, JSCallGraphBuilderUtil.CGBuilderType zeroOneCfaNoCallApply) static CallGraph
makeHTMLCG
(URL url, JSCallGraphBuilderUtil.CGBuilderType builderType, Supplier<JSSourceExtractor> fExtractor) static CallGraph
makeHTMLCG
(URL url, Supplier<JSSourceExtractor> fExtractor) static JSCFABuilder
makeHTMLCGBuilder
(URL url) static JSCFABuilder
makeHTMLCGBuilder
(URL url, JSCallGraphBuilderUtil.CGBuilderType type, Reader r) static JSCFABuilder
makeHTMLCGBuilder
(URL url, JSCallGraphBuilderUtil.CGBuilderType builderType, Supplier<JSSourceExtractor> fExtractor) static JSCFABuilder
makeHTMLCGBuilder
(URL url, JSCallGraphBuilderUtil.CGBuilderType builderType, Supplier<JSSourceExtractor> fExtractor, Reader r) static JSCFABuilder
makeHTMLCGBuilder
(URL url, Supplier<JSSourceExtractor> fExtractor) static JSCFABuilder
makeHTMLCGBuilder
(URL url, Supplier<JSSourceExtractor> fExtractor, Reader r) static SourceModule[]
makeHtmlScope
(URL url, JavaScriptLoaderFactory loaders, Supplier<JSSourceExtractor> fExtractor) static SourceModule[]
makeHtmlScope
(URL url, JavaScriptLoaderFactory loaders, Supplier<JSSourceExtractor> fExtractor, Reader r) static CallGraph
makeScriptCG
(SourceModule[] scripts, JSCallGraphBuilderUtil.CGBuilderType builderType, IRFactory<IMethod> irFactory) static CallGraph
makeScriptCG
(String dir, String name) static CallGraph
makeScriptCG
(String dir, String name, JSCallGraphBuilderUtil.CGBuilderType builderType, ClassLoader loader) static CallGraph
makeScriptCG
(String dir, String name, ClassLoader loader) static JSCFABuilder
makeScriptCGBuilder
(String dir, String name) static JSCFABuilder
makeScriptCGBuilder
(String dir, String name, JSCallGraphBuilderUtil.CGBuilderType builderType, ClassLoader loader) create a CG builder for script.static JSCFABuilder
makeScriptCGBuilder
(String dir, String name, ClassLoader loader) static JSCFABuilder
static JSCFABuilder
makeScriptCGBuilderWithoutCorrelationTracking
(String dir, String name, ClassLoader loader) static AnalysisScope
makeScriptScope
(String dir, String name, JavaScriptLoaderFactory loaders) static AnalysisScope
makeScriptScope
(String dir, String name, JavaScriptLoaderFactory loaders, ClassLoader loader) static Module[]
makeSourceModules
(String dir, String name) static Module[]
makeSourceModules
(String dir, String name, ClassLoader loader) Methods inherited from class com.ibm.wala.cast.js.ipa.callgraph.JSCallGraphUtil
getMethodReference, getNodes, getPrologueFile, getTranslatorFactory, loadAdditionalFile, loadAdditionalFile, makeHierarchy, makeHierarchyForScripts, makeLoaders, makeLoaders, makeOptions, makeScriptRoots, setTranslatorFactory, simulateToStringForPropertyNames
Methods inherited from class com.ibm.wala.cast.ipa.callgraph.CAstCallGraphUtil
dumpCG, getShortName, getShortName, handleFileNames, makeCache, makeScope, makeScope, makeSourceModule, makeSourceModule
-
Constructor Details
-
JSCallGraphBuilderUtil
public JSCallGraphBuilderUtil()
-
-
Method Details
-
makeScriptCGBuilder
public static JSCFABuilder makeScriptCGBuilder(String dir, String name, JSCallGraphBuilderUtil.CGBuilderType builderType, ClassLoader loader) throws IOException, WalaException create a CG builder for script. Note that the script at dir/name is loaded via the classloader, not from the filesystem.- Throws:
IOException
WalaException
-
getURLforFile
- Throws:
IOException
-
makeScriptScope
public static AnalysisScope makeScriptScope(String dir, String name, JavaScriptLoaderFactory loaders, ClassLoader loader) throws IOException - Throws:
IOException
-
makeScriptScope
public static AnalysisScope makeScriptScope(String dir, String name, JavaScriptLoaderFactory loaders) throws IOException - Throws:
IOException
-
makeSourceModules
- Throws:
IOException
-
makeSourceModules
public static Module[] makeSourceModules(String dir, String name, ClassLoader loader) throws IOException - Throws:
IOException
-
makeScriptCGBuilder
public static JSCFABuilder makeScriptCGBuilder(String dir, String name, ClassLoader loader) throws IOException, WalaException - Throws:
IOException
WalaException
-
makeScriptCGBuilder
public static JSCFABuilder makeScriptCGBuilder(String dir, String name) throws IOException, WalaException - Throws:
IOException
WalaException
-
makeScriptCG
public static CallGraph makeScriptCG(String dir, String name) throws IOException, IllegalArgumentException, CancelException, WalaException -
makeScriptCG
public static CallGraph makeScriptCG(String dir, String name, ClassLoader loader) throws IOException, IllegalArgumentException, CancelException, WalaException -
makeScriptCGBuilderWithoutCorrelationTracking
public static JSCFABuilder makeScriptCGBuilderWithoutCorrelationTracking(String dir, String name, ClassLoader loader) throws IOException, WalaException - Throws:
IOException
WalaException
-
makeScriptCGBuilderWithoutCorrelationTracking
public static JSCFABuilder makeScriptCGBuilderWithoutCorrelationTracking(String dir, String name) throws IOException, WalaException - Throws:
IOException
WalaException
-
makeScriptCG
public static CallGraph makeScriptCG(String dir, String name, JSCallGraphBuilderUtil.CGBuilderType builderType, ClassLoader loader) throws IOException, IllegalArgumentException, CancelException, WalaException -
makeScriptCG
public static CallGraph makeScriptCG(SourceModule[] scripts, JSCallGraphBuilderUtil.CGBuilderType builderType, IRFactory<IMethod> irFactory) throws IllegalArgumentException, CancelException, WalaException -
makeHTMLCGBuilder
public static JSCFABuilder makeHTMLCGBuilder(URL url, Supplier<JSSourceExtractor> fExtractor) throws WalaException - Throws:
WalaException
-
makeHTMLCGBuilder
public static JSCFABuilder makeHTMLCGBuilder(URL url, Supplier<JSSourceExtractor> fExtractor, Reader r) throws WalaException - Throws:
WalaException
-
makeHTMLCGBuilder
public static JSCFABuilder makeHTMLCGBuilder(URL url, JSCallGraphBuilderUtil.CGBuilderType builderType, Supplier<JSSourceExtractor> fExtractor) throws WalaException - Throws:
WalaException
-
makeHTMLCGBuilder
public static JSCFABuilder makeHTMLCGBuilder(URL url, JSCallGraphBuilderUtil.CGBuilderType builderType, Supplier<JSSourceExtractor> fExtractor, Reader r) throws WalaException - Throws:
WalaException
-
makeHtmlScope
public static SourceModule[] makeHtmlScope(URL url, JavaScriptLoaderFactory loaders, Supplier<JSSourceExtractor> fExtractor) -
makeHtmlScope
public static SourceModule[] makeHtmlScope(URL url, JavaScriptLoaderFactory loaders, Supplier<JSSourceExtractor> fExtractor, Reader r) -
makeHTMLCG
public static CallGraph makeHTMLCG(URL url, Supplier<JSSourceExtractor> fExtractor) throws IllegalArgumentException, CancelException, WalaException -
makeHTMLCG
public static CallGraph makeHTMLCG(URL url, JSCallGraphBuilderUtil.CGBuilderType builderType, Supplier<JSSourceExtractor> fExtractor) throws IllegalArgumentException, CancelException, WalaException -
makeCGBuilder
public static JSCFABuilder makeCGBuilder(JavaScriptLoaderFactory loaders, Module[] scripts, JSCallGraphBuilderUtil.CGBuilderType builderType, IRFactory<IMethod> irFactory) throws WalaException - Throws:
WalaException
-
makeCG
protected static JSCFABuilder makeCG(JavaScriptLoaderFactory loaders, AnalysisScope scope, JSCallGraphBuilderUtil.CGBuilderType builderType, IRFactory<IMethod> irFactory) throws WalaException - Throws:
WalaException
-
makeHTMLCG
public static CallGraph makeHTMLCG(URL url, JSCallGraphBuilderUtil.CGBuilderType zeroOneCfaNoCallApply) throws IllegalArgumentException, CancelException, WalaException -
makeHTMLCG
public static CallGraph makeHTMLCG(URL url) throws IllegalArgumentException, CancelException, WalaException -
makeHTMLCGBuilder
public static JSCFABuilder makeHTMLCGBuilder(URL url, JSCallGraphBuilderUtil.CGBuilderType type, Reader r) throws WalaException - Throws:
WalaException
-
makeHTMLCGBuilder
- Throws:
WalaException
-