Class DirectoryTreeModule

java.lang.Object
com.ibm.wala.classLoader.DirectoryTreeModule
All Implemented Interfaces:
Module
Direct Known Subclasses:
BinaryDirectoryTreeModule, SourceDirectoryTreeModule

public abstract class DirectoryTreeModule extends Object implements Module
A module containing files under some directory.
  • Field Details

    • root

      protected final File root
  • Method Details

    • makeFile

      protected abstract FileModule makeFile(File file)
      returns null if unsuccessful in creating FileModule
    • includeFile

      protected abstract boolean includeFile(File file)
    • getEntries

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

      public String getPath()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object