Class FileModule
java.lang.Object
com.ibm.wala.classLoader.FileModule
- All Implemented Interfaces:
Module, ModuleEntry
- Direct Known Subclasses:
ClassFileModule, SourceFileModule
A module which is a wrapper around a file in the filesystem
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModuleEntry
getClassName, isClassFile, isSourceFile
-
Constructor Details
-
FileModule
- Throws:
IllegalArgumentException
-
-
Method Details
-
getAbsolutePath
-
getEntries
- Specified by:
getEntriesin interfaceModule- Returns:
- an Iterator of the ModuleEntries in this Module.
-
hashCode
-
equals
-
getName
- Specified by:
getNamein interfaceModuleEntry- Returns:
- a String that represents the name of the file described by this object
-
getInputStream
- Specified by:
getInputStreamin interfaceModuleEntry- Returns:
- an InputStream which provides the contents of this logical file.
-
isModuleFile
public boolean isModuleFile()- Specified by:
isModuleFilein interfaceModuleEntry- Returns:
- true iff this module entry (file) represents a module in its own right. e.g., a jar file which is an entry in another jar file.
-
getFile
- Returns:
- Returns the file.
-
asModule
Description copied from interface:ModuleEntryPrecondition: isModuleFile().- Specified by:
asModulein interfaceModuleEntry- Returns:
- a Module view of this entry.
- Throws:
UnimplementedError
-
getContainer
Description copied from interface:ModuleEntrythe containing module- Specified by:
getContainerin interfaceModuleEntry
-