Class NodejsCallGraphBuilderUtil
java.lang.Object
com.ibm.wala.cast.ipa.callgraph.CAstCallGraphUtil
com.ibm.wala.cast.js.ipa.callgraph.JSCallGraphUtil
com.ibm.wala.cast.js.nodejs.NodejsCallGraphBuilderUtil
- Author:
- Brian Pfretzschner <brian.pfretzschner@gmail.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class JSCallGraphUtil
JSCallGraphUtil.Bootstrap -
Field Summary
Fields inherited from class JSCallGraphUtil
translatorFactoryModifier and TypeFieldDescriptionstatic JavaScriptTranslatorFactorythe translator factory to be used for analysis TODO: pass the factory where needed instead of using a global?Fields inherited from class CAstCallGraphUtil
AVOID_DUMPModifier and TypeFieldDescriptionstatic final ThreadLocal<Boolean> flag to prevent dumping of verbose call graph / pointer analysis output -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropagationCallGraphBuildermakeCGBuilder(File mainFile) static PropagationCallGraphBuildermakeCGBuilder(File workingDir, File mainFile) Methods inherited from class JSCallGraphUtil
getMethodReference, getNodes, getPrologueFile, getTranslatorFactory, loadAdditionalFile, loadAdditionalFile, makeHierarchy, makeHierarchyForScripts, makeLoaders, makeLoaders, makeOptions, makeScriptRoots, setTranslatorFactory, simulateToStringForPropertyNamesModifier and TypeMethodDescriptionstatic MethodReferencegetMethodReference(String funName) static Collection<CGNode> Get all the nodes in CG with name funName.static ModulegetPrologueFile(String name) static JavaScriptTranslatorFactoryloadAdditionalFile(IClassHierarchy cha, JavaScriptLoader cl, ModuleEntry M) loadAdditionalFile(IClassHierarchy cha, JavaScriptLoader cl, URL url) static IClassHierarchymakeHierarchy(AnalysisScope scope, ClassLoaderFactory loaders) static IClassHierarchymakeHierarchyForScripts(String... scriptFiles) static JavaScriptLoaderFactorystatic JavaScriptLoaderFactorymakeLoaders(CAstRewriterFactory<?, ?> preprocessor) static JSAnalysisOptionsmakeOptions(AnalysisScope scope, IClassHierarchy cha, Iterable<Entrypoint> roots) static JavaScriptEntryPointsstatic voidsetTranslatorFactory(JavaScriptTranslatorFactory translatorFactory) Set up the translator factory.static StringMethods inherited from class CAstCallGraphUtil
dumpCG, getShortName, getShortName, handleFileNames, makeCache, makeScope, makeScope, makeSourceModule, makeSourceModuleModifier and TypeMethodDescriptionstatic voiddumpCG(SSAContextInterpreter interp, PointerAnalysis<? extends InstanceKey> PA, CallGraph CG) static StringgetShortName(IMethod method) static StringgetShortName(CGNode nd) static SourceFileModule[]handleFileNames(String[] fileNameArgs) static IAnalysisCacheViewstatic AnalysisScopemakeScope(Module[] files, SingleClassLoaderFactory loaders, Language language) static AnalysisScopemakeScope(String[] files, SingleClassLoaderFactory loaders, Language language) static SourceFileModulemakeSourceModule(URL script, String scriptName) static SourceFileModulemakeSourceModule(URL script, String dir, String name)
-
Constructor Details
-
NodejsCallGraphBuilderUtil
public NodejsCallGraphBuilderUtil()
-
-
Method Details
-
makeCGBuilder
public static PropagationCallGraphBuilder makeCGBuilder(File mainFile) throws IOException, IllegalArgumentException, WalaException -
makeCGBuilder
public static PropagationCallGraphBuilder makeCGBuilder(File workingDir, File mainFile) throws IOException, IllegalArgumentException, WalaException
-