Class EclipseFileProvider
java.lang.Object
com.ibm.wala.core.util.io.FileProvider
com.ibm.wala.ide.util.EclipseFileProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile(String fileName, ClassLoader loader) getFileFromPlugin(org.eclipse.core.runtime.Plugin p, String fileName) getJarFileModule(String fileName, ClassLoader loader) getResource(String fileName, ClassLoader loader) static StringThis is fragile.Methods inherited from class FileProvider
filePathFromURL, getFile, getFileFromClassLoader, getInputStreamFromClassLoader, getJarFileFromClassLoader, getJarFileModule, getResource
-
Constructor Details
-
EclipseFileProvider
public EclipseFileProvider() -
EclipseFileProvider
public EclipseFileProvider(org.eclipse.core.runtime.Plugin plugIn)
-
-
Method Details
-
getJarFileModule
- Overrides:
getJarFileModulein classFileProvider- Throws:
IOException
-
getResource
- Overrides:
getResourcein classFileProvider
-
getFile
- Overrides:
getFilein classFileProvider- Throws:
IOException
-
getFileFromPlugin
public File getFileFromPlugin(org.eclipse.core.runtime.Plugin p, String fileName) throws IOException - Returns:
- the jar file packaged with this plug-in of the given name, or null if not found.
- Throws:
IllegalArgumentException- if p is nullIOException
-
getWalaCorePluginHome
This is fragile. Use with care.- Returns:
- a String representing the path to the wala.core plugin installation
-