Class AbstractURLModule
java.lang.Object
com.ibm.wala.classLoader.AbstractURLModule
- All Implemented Interfaces:
Module
,ModuleEntry
- Direct Known Subclasses:
ClassFileURLModule
,SourceURLModule
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.ibm.wala.classLoader.ModuleEntry
isClassFile, isSourceFile
-
Constructor Details
-
AbstractURLModule
-
-
Method Details
-
getURL
-
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.
-
asModule
Description copied from interface:ModuleEntry
Precondition: isModuleFile().- Specified by:
asModule
in interfaceModuleEntry
- Returns:
- a Module view of this entry.
- Throws:
UnimplementedError
-
getClassName
- Specified by:
getClassName
in interfaceModuleEntry
- Returns:
- the name of the class represented by this entry
- Throws:
UnsupportedOperationException
- if !isClassFile() and !isSourceFile()
-
getEntries
- Specified by:
getEntries
in interfaceModule
- Returns:
- an Iterator of the ModuleEntries in this Module.
-
getContainer
Description copied from interface:ModuleEntry
the containing module- Specified by:
getContainer
in interfaceModuleEntry
-
toString
-