Class EclipseFileProvider
java.lang.Object
com.ibm.wala.core.util.io.FileProvider
com.ibm.wala.ide.util.EclipseFileProvider
-
Constructor Summary
-
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 String
This is fragile.Methods inherited from class com.ibm.wala.core.util.io.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:
getJarFileModule
in classFileProvider
- Throws:
IOException
-
getResource
- Overrides:
getResource
in classFileProvider
-
getFile
- Overrides:
getFile
in 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
-