com.ibm.wala.eclipse.util
Class EclipseProjectPath

java.lang.Object
  extended by com.ibm.wala.eclipse.util.EclipseProjectPath

public class EclipseProjectPath
extends java.lang.Object

Representation of an analysis scope from an Eclipse project. We set up classloaders as follows:


Nested Class Summary
static class EclipseProjectPath.Loader
           
 
Field Summary
static Atom SOURCE
          TODO: do we really need this? Why shouldn't source files come from a "normal" class loader like any other resource?
static ClassLoaderReference SOURCE_REF
           
 
Method Summary
 java.util.Collection<Module> getModules(EclipseProjectPath.Loader loader, boolean binary)
           
static EclipseProjectPath make(org.eclipse.core.runtime.IPath workspaceRootPath, org.eclipse.jdt.core.IJavaProject project)
           
protected  org.eclipse.core.runtime.IPath makeAbsolute(org.eclipse.core.runtime.IPath p)
           
protected  void resolveClasspathEntries(org.eclipse.jdt.core.IClasspathEntry[] entries, EclipseProjectPath.Loader loader)
           
 void resolveProjectClasspathEntries()
           
 AnalysisScope toAnalysisScope(java.lang.String exclusionsFile)
          Convert this path to a WALA analysis scope
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SOURCE

public static final Atom SOURCE
TODO: do we really need this? Why shouldn't source files come from a "normal" class loader like any other resource?


SOURCE_REF

public static final ClassLoaderReference SOURCE_REF
Method Detail

make

public static EclipseProjectPath make(org.eclipse.core.runtime.IPath workspaceRootPath,
                                      org.eclipse.jdt.core.IJavaProject project)

resolveClasspathEntries

protected void resolveClasspathEntries(org.eclipse.jdt.core.IClasspathEntry[] entries,
                                       EclipseProjectPath.Loader loader)
                                throws org.eclipse.jdt.core.JavaModelException,
                                       java.io.IOException
Throws:
org.eclipse.jdt.core.JavaModelException
java.io.IOException

makeAbsolute

protected org.eclipse.core.runtime.IPath makeAbsolute(org.eclipse.core.runtime.IPath p)

resolveProjectClasspathEntries

public void resolveProjectClasspathEntries()
                                    throws org.eclipse.jdt.core.JavaModelException,
                                           java.io.IOException
Throws:
org.eclipse.jdt.core.JavaModelException
java.io.IOException

toAnalysisScope

public AnalysisScope toAnalysisScope(java.lang.String exclusionsFile)
Convert this path to a WALA analysis scope


getModules

public java.util.Collection<Module> getModules(EclipseProjectPath.Loader loader,
                                               boolean binary)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object