|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.ipa.callgraph.AnalysisScope
com.ibm.wala.util.scope.EclipseAnalysisScope
@Deprecated public class EclipseAnalysisScope
This class is used to build the complete analysis scope for analyzing an Eclipse plugin.
Given an Eclipse plugin, this class detects all the other plugins that should be part of the analysis scope when analyzing the given plugin. This is buggy in that it ignores the Import-Package declarations in the manifest. This is a problem. Probably the way to go is to recode this whole thing using a headless Eclipse instance, and rely on Eclipse APIs to resolve dependencies the right way.
| Field Summary | |
|---|---|
static boolean |
DEBUG
Deprecated. |
| Fields inherited from class com.ibm.wala.ipa.callgraph.AnalysisScope |
|---|
APPLICATION, EXTENSION, loadersByName, PRIMORDIAL, SYNTHETIC |
| Constructor Summary | |
|---|---|
EclipseAnalysisScope(java.lang.String pluginName)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addClassFileToScope(ClassLoaderReference loader,
java.io.File file)
Deprecated. Add a class file to the scope for a loader |
void |
addSourceFileToScope(ClassLoaderReference loader,
java.io.File file,
java.lang.String fileName)
Deprecated. Add a class file to the scope for a loader |
void |
addToScope(ClassLoaderReference loader,
java.util.jar.JarFile file)
Deprecated. Add a jar file to the scope for a loader |
void |
addToScope(ClassLoaderReference loader,
Module m)
Deprecated. Add a module to the scope for a loader |
EMFScopeWrapper |
buildDelegate(java.io.File pluginDirectory)
Deprecated. |
boolean |
equals(java.lang.Object obj)
Deprecated. |
static java.util.Set<java.util.jar.JarFile> |
findJars(java.io.File baseDir)
Deprecated. Finds all the JAR files in a given directory and all its subdirectories recursively. |
MethodReference |
findMethod(Atom loader,
java.lang.String klass,
Atom name,
ImmutableByteArray desc)
Deprecated. Utility function. |
static java.io.File |
findPluginDirOrJAR(java.lang.String libName,
java.lang.String pluginsDirName,
java.io.File pluginDirectory)
Deprecated. Converts a plugin name into an actual name in the file system. |
ClassLoaderReference |
getApplicationLoader()
Deprecated. Return the information regarding the application loader. |
ArrayClassLoader |
getArrayClassLoader()
Deprecated. |
SetOfClasses |
getExclusions()
Deprecated. |
ClassLoaderReference |
getExtensionLoader()
Deprecated. Return the information regarding the extension loader. |
static java.io.InputStream |
getInputStream(java.lang.String xmlFileName)
Deprecated. Return an InputStream to the plugin.xml file describing the
plugin configuration. |
java.lang.String |
getJavaLibraryVersion()
Deprecated. |
ClassLoaderReference |
getLoader(Atom name)
Deprecated. |
java.lang.String |
getLoaderImpl(ClassLoaderReference ref)
Deprecated. |
java.util.Collection<ClassLoaderReference> |
getLoaders()
Deprecated. |
java.util.Set<Module> |
getModules(ClassLoaderReference loader)
Deprecated. |
int |
getNumberOfLoaders()
Deprecated. |
java.lang.String |
getPluginName()
Deprecated. |
java.lang.String |
getPluginsDirName()
Deprecated. |
ClassLoaderReference |
getPrimordialLoader()
Deprecated. Return the information regarding the primordial loader. |
ClassLoaderReference |
getSyntheticLoader()
Deprecated. Return the information regarding the application loader. |
int |
hashCode()
Deprecated. |
boolean |
isJava14Libraries()
Deprecated. |
boolean |
isJava15Libraries()
Deprecated. |
void |
setExclusions(SetOfClasses classes)
Deprecated. |
java.lang.String |
toString()
Deprecated. |
| Methods inherited from class com.ibm.wala.ipa.callgraph.AnalysisScope |
|---|
classLoaderName2Ref, getExclusionString, setLoaderImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEBUG
| Constructor Detail |
|---|
public EclipseAnalysisScope(java.lang.String pluginName)
throws WalaException
pluginName - name of the plugin to be analyzed
WalaException| Method Detail |
|---|
public EMFScopeWrapper buildDelegate(java.io.File pluginDirectory)
throws WalaException
WalaException
public static java.io.File findPluginDirOrJAR(java.lang.String libName,
java.lang.String pluginsDirName,
java.io.File pluginDirectory)
throws java.lang.IllegalArgumentException
libName - a String representing the name of a plugin
null if no directory or
JAR file was found for this plugin.
java.lang.IllegalArgumentException - if pluginDirectory is null
public static java.util.Set<java.util.jar.JarFile> findJars(java.io.File baseDir)
throws java.lang.IllegalArgumentException
baseDir - a File representing the base directory of the plugin.
java.lang.IllegalArgumentExceptionpublic static java.io.InputStream getInputStream(java.lang.String xmlFileName)
plugin.xml file describing the
plugin configuration. The InputStream returned is null if
the XML file does not exist or cannot be opened.
xmlFileName - a String representing the name of the plugin.xml
file describing the plugin configuration.
plugin.xml file.
public void addClassFileToScope(ClassLoaderReference loader,
java.io.File file)
AnalysisScope
addClassFileToScope in class AnalysisScope
public void addSourceFileToScope(ClassLoaderReference loader,
java.io.File file,
java.lang.String fileName)
AnalysisScope
addSourceFileToScope in class AnalysisScope
public void addToScope(ClassLoaderReference loader,
java.util.jar.JarFile file)
AnalysisScope
addToScope in class AnalysisScope
public void addToScope(ClassLoaderReference loader,
Module m)
AnalysisScope
addToScope in class AnalysisScopepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public MethodReference findMethod(Atom loader,
java.lang.String klass,
Atom name,
ImmutableByteArray desc)
AnalysisScope
findMethod in class AnalysisScopepublic ClassLoaderReference getApplicationLoader()
AnalysisScope
getApplicationLoader in class AnalysisScopepublic ArrayClassLoader getArrayClassLoader()
getArrayClassLoader in class AnalysisScopepublic SetOfClasses getExclusions()
getExclusions in class AnalysisScopepublic ClassLoaderReference getExtensionLoader()
AnalysisScope
getExtensionLoader in class AnalysisScopepublic java.lang.String getJavaLibraryVersion()
getJavaLibraryVersion in class AnalysisScopepublic ClassLoaderReference getLoader(Atom name)
getLoader in class AnalysisScopename.public java.lang.String getLoaderImpl(ClassLoaderReference ref)
getLoaderImpl in class AnalysisScopepublic java.util.Collection<ClassLoaderReference> getLoaders()
getLoaders in class AnalysisScopepublic java.util.Set<Module> getModules(ClassLoaderReference loader)
getModules in class AnalysisScopepublic int getNumberOfLoaders()
getNumberOfLoaders in class AnalysisScopepublic ClassLoaderReference getPrimordialLoader()
AnalysisScope
getPrimordialLoader in class AnalysisScopepublic ClassLoaderReference getSyntheticLoader()
AnalysisScope
getSyntheticLoader in class AnalysisScopepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isJava14Libraries()
isJava14Libraries in class AnalysisScopepublic boolean isJava15Libraries()
isJava15Libraries in class AnalysisScopepublic void setExclusions(SetOfClasses classes)
setExclusions in class AnalysisScopepublic java.lang.String toString()
toString in class AnalysisScopepublic java.lang.String getPluginName()
public java.lang.String getPluginsDirName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||