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