Class CompoundModule

java.lang.Object
com.ibm.wala.classLoader.CompoundModule
All Implemented Interfaces:
Module, ModuleEntry, SourceModule

public class CompoundModule extends Object implements ModuleEntry, Module, SourceModule
  • Constructor Details

    • CompoundModule

      public CompoundModule(URL name, SourceModule[] constituents)
  • Method Details

    • getConstituents

      public SourceModule[] getConstituents()
    • getEntries

      public Iterator<ModuleEntry> getEntries()
      Specified by:
      getEntries in interface Module
      Returns:
      an Iterator of the ModuleEntries in this Module.
    • isModuleFile

      public boolean isModuleFile()
      Specified by:
      isModuleFile in interface ModuleEntry
      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

      public Module asModule()
      Description copied from interface: ModuleEntry
      Precondition: isModuleFile().
      Specified by:
      asModule in interface ModuleEntry
      Returns:
      a Module view of this entry.
    • getClassName

      public String getClassName()
      Specified by:
      getClassName in interface ModuleEntry
      Returns:
      the name of the class represented by this entry
    • getName

      public String getName()
      Specified by:
      getName in interface ModuleEntry
      Returns:
      a String that represents the name of the file described by this object
    • getURL

      public URL getURL()
      Specified by:
      getURL in interface SourceModule
    • isClassFile

      public boolean isClassFile()
      Specified by:
      isClassFile in interface ModuleEntry
      Returns:
      true if the file is a class file.
    • isSourceFile

      public boolean isSourceFile()
      Specified by:
      isSourceFile in interface ModuleEntry
      Returns:
      true if the file is a source file.
    • getInputStream

      public InputStream getInputStream()
      Specified by:
      getInputStream in interface ModuleEntry
      Returns:
      an InputStream which provides the contents of this logical file.
    • getInputReader

      public CompoundModule.Reader getInputReader()
      Specified by:
      getInputReader in interface SourceModule
    • getContainer

      public Module getContainer()
      Description copied from interface: ModuleEntry
      the containing module
      Specified by:
      getContainer in interface ModuleEntry