com.ibm.wala.cast.java.client.polyglot
Class EclipseProjectSourceAnalysisEngine

java.lang.Object
  extended by com.ibm.wala.client.AbstractAnalysisEngine
      extended by com.ibm.wala.cast.java.client.polyglot.EclipseProjectAnalysisEngine
          extended by com.ibm.wala.cast.java.client.polyglot.EclipseProjectSourceAnalysisEngine
All Implemented Interfaces:
AnalysisEngine

public class EclipseProjectSourceAnalysisEngine
extends EclipseProjectAnalysisEngine

An EclipseProjectAnalysisEngine specialized for source code analysis with CAst


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.wala.client.AbstractAnalysisEngine
AbstractAnalysisEngine.EntrypointBuilder
 
Field Summary
static java.lang.String defaultFileExt
           
 
Fields inherited from class com.ibm.wala.cast.java.client.polyglot.EclipseProjectAnalysisEngine
ePath, project, workspaceRootPath
 
Fields inherited from class com.ibm.wala.client.AbstractAnalysisEngine
cg, DEBUG_LEVEL, j2seLibs, moduleFiles, pointerAnalysis, scope, SYNTHETIC_J2SE_MODEL
 
Constructor Summary
EclipseProjectSourceAnalysisEngine(org.eclipse.jdt.core.IJavaProject project)
           
EclipseProjectSourceAnalysisEngine(org.eclipse.jdt.core.IJavaProject project, java.lang.String fileExt)
           
 
Method Summary
 void buildAnalysisScope()
          Set up the AnalysisScope object
 IClassHierarchy buildClassHierarchy()
           
protected  ClassLoaderFactory getClassLoaderFactory(SetOfClasses exclusions, IRTranslatorExtension extInfo)
           
 AnalysisOptions getDefaultOptions(java.lang.Iterable<Entrypoint> entrypoints)
          Get the default analysis options appropriate for this engine
 IRTranslatorExtension getTranslatorExtension()
           
 AnalysisCache makeDefaultCache()
           
protected  java.lang.Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope, IClassHierarchy cha)
           
protected  AnalysisScope makeSourceAnalysisScope()
           
 
Methods inherited from class com.ibm.wala.cast.java.client.polyglot.EclipseProjectAnalysisEngine
createProjectPath, getCallGraphBuilder, getEclipseProjectPath
 
Methods inherited from class com.ibm.wala.client.AbstractAnalysisEngine
addApplicationModulesToScope, buildCallGraph, buildDefaultCallGraph, defaultCallGraphBuilder, getCache, getCallGraph, getClassHierarchy, getExclusionsFile, getHeapGraph, getOptions, getPointerAnalysis, getScope, isClosedWorld, setClassHierarchy, setClosedWorld, setEntrypointBuilder, setExclusionsFile, setJ2SELibraries, setJ2SELibraries, setModuleFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultFileExt

public static final java.lang.String defaultFileExt
See Also:
Constant Field Values
Constructor Detail

EclipseProjectSourceAnalysisEngine

public EclipseProjectSourceAnalysisEngine(org.eclipse.jdt.core.IJavaProject project)
                                   throws java.io.IOException,
                                          org.eclipse.core.runtime.CoreException
Throws:
java.io.IOException
org.eclipse.core.runtime.CoreException

EclipseProjectSourceAnalysisEngine

public EclipseProjectSourceAnalysisEngine(org.eclipse.jdt.core.IJavaProject project,
                                          java.lang.String fileExt)
                                   throws java.io.IOException,
                                          org.eclipse.core.runtime.CoreException
Throws:
java.io.IOException
org.eclipse.core.runtime.CoreException
Method Detail

makeDefaultCache

public AnalysisCache makeDefaultCache()
Overrides:
makeDefaultCache in class AbstractAnalysisEngine

makeSourceAnalysisScope

protected AnalysisScope makeSourceAnalysisScope()

buildAnalysisScope

public void buildAnalysisScope()
Description copied from class: AbstractAnalysisEngine
Set up the AnalysisScope object

Overrides:
buildAnalysisScope in class EclipseProjectAnalysisEngine

getTranslatorExtension

public IRTranslatorExtension getTranslatorExtension()

getClassLoaderFactory

protected ClassLoaderFactory getClassLoaderFactory(SetOfClasses exclusions,
                                                   IRTranslatorExtension extInfo)

buildClassHierarchy

public IClassHierarchy buildClassHierarchy()
Overrides:
buildClassHierarchy in class AbstractAnalysisEngine
Returns:
a IClassHierarchy object for this analysis scope

makeDefaultEntrypoints

protected java.lang.Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope,
                                                                IClassHierarchy cha)
Overrides:
makeDefaultEntrypoints in class AbstractAnalysisEngine

getDefaultOptions

public AnalysisOptions getDefaultOptions(java.lang.Iterable<Entrypoint> entrypoints)
Description copied from interface: AnalysisEngine
Get the default analysis options appropriate for this engine

Specified by:
getDefaultOptions in interface AnalysisEngine
Overrides:
getDefaultOptions in class AbstractAnalysisEngine