Class SourceFolderLibrary

All Implemented Interfaces:
ClassLibrary, Serializable

public class SourceFolderLibrary extends SourceLibrary
Since:
2.0
See Also:
  • Field Details

    • sourceFolders

      private List<File> sourceFolders
  • Constructor Details

  • Method Details

    • addSourceFolder

      public JavaModule addSourceFolder(File sourceFolder)
    • getJavaModules

      public Collection<JavaModule> getJavaModules()
      Specified by:
      getJavaModules in interface ClassLibrary
      Overrides:
      getJavaModules in class AbstractClassLibrary
    • resolveJavaModules

      private Collection<JavaModule> resolveJavaModules()
    • resolveJavaModule

      private JavaModule resolveJavaModule(File sourceFolder)
    • resolveJavaClass

      protected JavaClass resolveJavaClass(String className)
      Description copied from class: AbstractClassLibrary
      The implementation should check it's sources to see if it can build a JavaClass Model If not, just return null; Once found it will be mapped, so there's no need to keep a reference to this object.
      Overrides:
      resolveJavaClass in class SourceLibrary
      Parameters:
      className - the fully qualified name
      Returns:
      the resolved JavaClass, otherwise null
    • containsClassReference

      protected boolean containsClassReference(String className)
      Loops over the sourceFolder to find a classReference. It will try to map the className to a file.
      Overrides:
      containsClassReference in class SourceLibrary
      Parameters:
      className - the fully qualified name of the class
      Returns:
      true if this ClassLibrary has a reference to this class.