Package com.ibm.wala.classLoader
Interface ModuleEntry
-
- All Known Subinterfaces:
SourceModule
- All Known Implementing Classes:
AbstractURLModule,ClassFileModule,CompoundModule,DexModuleEntry,FileModule,JarFileEntry,SourceFileModule,SourceURLModule
public interface ModuleEntryA ModuleEntry represents a wrapper around a file representation in aModule.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModuleasModule()Precondition: isModuleFile().StringgetClassName()ModulegetContainer()the containing moduleInputStreamgetInputStream()StringgetName()booleanisClassFile()booleanisModuleFile()booleanisSourceFile()
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- a String that represents the name of the file described by this object
-
isClassFile
boolean isClassFile()
- Returns:
- true if the file is a class file.
-
isSourceFile
boolean isSourceFile()
- Returns:
- true if the file is a source file.
-
getInputStream
InputStream getInputStream()
- Returns:
- an InputStream which provides the contents of this logical file.
-
isModuleFile
boolean isModuleFile()
- 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
Module asModule()
Precondition: isModuleFile().- Returns:
- a Module view of this entry.
-
getClassName
String getClassName()
- Returns:
- the name of the class represented by this entry
- Throws:
UnsupportedOperationException- if !isClassFile() and !isSourceFile()
-
getContainer
Module getContainer()
the containing module
-
-