Class JavaScriptAnalysisEngine.FieldBasedJavaScriptAnalysisEngine
java.lang.Object
com.ibm.wala.client.AbstractAnalysisEngine<ObjectVertex, CallGraphBuilder<ObjectVertex>, Void>
com.ibm.wala.cast.js.client.JavaScriptAnalysisEngine<ObjectVertex>
com.ibm.wala.cast.js.client.JavaScriptAnalysisEngine.FieldBasedJavaScriptAnalysisEngine
- All Implemented Interfaces:
AnalysisEngine
- Enclosing class:
JavaScriptAnalysisEngine<I extends InstanceKey>
public static class JavaScriptAnalysisEngine.FieldBasedJavaScriptAnalysisEngine
extends JavaScriptAnalysisEngine<ObjectVertex>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumNested classes/interfaces inherited from class JavaScriptAnalysisEngine
JavaScriptAnalysisEngine.FieldBasedJavaScriptAnalysisEngine, JavaScriptAnalysisEngine.PropagationJavaScriptAnalysisEngineModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class AbstractAnalysisEngine
AbstractAnalysisEngine.EntrypointBuilder -
Field Summary
Fields inherited from class JavaScriptAnalysisEngine
loaderFactory, translatorFactoryModifier and TypeFieldDescriptionprotected JavaScriptLoaderFactoryprotected JavaScriptTranslatorFactoryFields inherited from class AbstractAnalysisEngine
cg, DEBUG_LEVEL, j2seLibs, moduleFiles, pointerAnalysis, scope, SYNTHETIC_J2SE_MODELModifier and TypeFieldDescriptionprotected CallGraphGoverning call graphprotected static final intDEBUG_LEVEL: 0 No output 1 Print some simple stats and warning information 2 Detailed debuggingprotected Module[]The standard J2SE libraries to analyzeprotected Collection<? extends Module> The modules to analyzeprotected PointerAnalysis<ObjectVertex> Results of pointer analysisprotected AnalysisScopeA representation of the analysis scopestatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CallGraphBuilder<ObjectVertex> getCallGraphBuilder(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache) getDefaultOptions(Iterable<Entrypoint> roots) Get the default analysis options appropriate for this enginevoidMethods inherited from class JavaScriptAnalysisEngine
buildAnalysisScope, buildClassHierarchy, makeDefaultCache, makeDefaultEntrypoints, setJ2SELibraries, setJ2SELibraries, setTranslatorFactoryModifier and TypeMethodDescriptionvoidSet up the AnalysisScope objectprotected Iterable<Entrypoint> voidsetJ2SELibraries(Module[] libs) Specify the mdoules that represent the standard J2SE librariesvoidsetJ2SELibraries(JarFile[] libs) Specify the jar files that represent the standard J2SE librariesvoidMethods inherited from class AbstractAnalysisEngine
addApplicationModulesToScope, buildCallGraph, buildDefaultCallGraph, defaultCallGraphBuilder, getCache, getCallGraph, getClassHierarchy, getExclusionsFile, getHeapGraph, getOptions, getPointerAnalysis, getScope, getSDG, isClosedWorld, makeClassLoaderFactory, performAnalysis, setClassHierarchy, setClosedWorld, setEntrypointBuilder, setExclusionsFile, setModuleFilesModifier and TypeMethodDescriptionprotected voidAdd the application modules to the analysis scope.protected CallGraphBuilder<ObjectVertex> buildCallGraph(IClassHierarchy cha, AnalysisOptions options, boolean savePointerAnalysis, MonitorUtil.IProgressMonitor monitor) Builds the call graph for the analysis scope in effect, using all of the given entry points.getCache()protected CallGraphHeapGraph<?> PointerAnalysis<? super ObjectVertex> protected AnalysisScopegetScope()SDG<? super ObjectVertex> booleanprotected ClassLoaderFactorymakeClassLoaderFactory(StringFilter exclusions) protected IClassHierarchyvoidsetClosedWorld(boolean b) Specify whether the engine should or should not employ "closed-world" analysis.voidvoidsetExclusionsFile(String exclusionsFile) voidsetModuleFiles(Collection<? extends Module> moduleFiles) Specify the list of modules that should be analyzed.
-
Constructor Details
-
FieldBasedJavaScriptAnalysisEngine
public FieldBasedJavaScriptAnalysisEngine()
-
-
Method Details
-
getBuilderType
- Returns:
- the builderType
-
setBuilderType
public void setBuilderType(JavaScriptAnalysisEngine.FieldBasedJavaScriptAnalysisEngine.BuilderType builderType) - Parameters:
builderType- the builderType to set
-
getDefaultOptions
Description copied from interface:AnalysisEngineGet the default analysis options appropriate for this engine- Specified by:
getDefaultOptionsin interfaceAnalysisEngine- Overrides:
getDefaultOptionsin classJavaScriptAnalysisEngine<ObjectVertex>
-
getCallGraphBuilder
protected CallGraphBuilder<ObjectVertex> getCallGraphBuilder(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache) - Specified by:
getCallGraphBuilderin classAbstractAnalysisEngine<ObjectVertex, CallGraphBuilder<ObjectVertex>, Void>
-