Class SourceFileModule

java.lang.Object
com.ibm.wala.classLoader.FileModule
com.ibm.wala.classLoader.SourceFileModule
All Implemented Interfaces:
Module, ModuleEntry, SourceModule
Direct Known Subclasses:
EclipseSourceFileModule, MappedSourceFileModule, NodejsRequiredSourceModule

public class SourceFileModule extends FileModule implements Module, ModuleEntry, SourceModule
A Module which is a wrapper around a source file
  • Constructor Details

  • Method Details

    • toString

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

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

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

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

      public Reader getInputReader()
      Specified by:
      getInputReader in interface SourceModule
    • logicalFileName

      public String logicalFileName()
      Sometimes a file has a name that is not really a pathname, such as a name with respect to an include path specified elsewhere. We call this a logical name.
      Returns:
      a logical file name
    • getURL

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