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
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.wala.classLoader.ModuleEntry
getClassName, isClassFile, isSourceFile
-
Constructor Details
-
FileModule
- Throws:
IllegalArgumentException
-
-
Method Details
-
getAbsolutePath
-
getEntries
- Specified by:
getEntries
in interfaceModule
- Returns:
- an Iterator of the ModuleEntries in this Module.
-
hashCode
-
equals
-
getName
- Specified by:
getName
in interfaceModuleEntry
- Returns:
- a String that represents the name of the file described by this object
-
getInputStream
- Specified by:
getInputStream
in interfaceModuleEntry
- Returns:
- an InputStream which provides the contents of this logical file.
-
isModuleFile
public boolean isModuleFile()- Specified by:
isModuleFile
in 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:ModuleEntry
Precondition: isModuleFile().- Specified by:
asModule
in interfaceModuleEntry
- Returns:
- a Module view of this entry.
- Throws:
UnimplementedError
-
getContainer
Description copied from interface:ModuleEntry
the containing module- Specified by:
getContainer
in interfaceModuleEntry
-