Class JaMoPPSoftwareModelExtractor

java.lang.Object
org.splevo.jamopp.extraction.JaMoPPSoftwareModelExtractor

public class JaMoPPSoftwareModelExtractor extends Object
Software Model Extractor for the Java technology based on the Java Model Parser and Printer (JaMoPP). JaMoPPSoftwareModelExtractor are copied from splevo and adapted in order to work with SoMoX. And adapted to work without further dependencies to the splevo code.
  • Field Details

  • Constructor Details

    • JaMoPPSoftwareModelExtractor

      public JaMoPPSoftwareModelExtractor()
  • Method Details

    • extractSoftwareModelFromProjects

      public ResourceSet extractSoftwareModelFromProjects(Collection<org.eclipse.jdt.core.IJavaProject> projects, IProgressMonitor monitor, String sourceModelPath, boolean extractLayoutInfo)
      Extract the source model of a list of java projects. One project is the main project while a list of additional projects to analyze can be specified. The reason for one main project is, that this one is used for example for the naming of the root inventory produced etc.
      Parameters:
      projectPaths - The projects to be extracted.
      monitor - The monitor to report the progress to.
      sourceModelPath - The absolute path to the directory to store information for extracted source model in. If null, no reference cache will be used for result resolving, which has negative impacts on performance.
      extractLayoutInfo - Option to extract layout information.
      Returns:
      The set of resources containing the extracted model. @ Identifies the extraction was not successful.
    • extractSoftwareModelFromFolders

      public ResourceSet extractSoftwareModelFromFolders(Iterable<File> sourceFolders, IProgressMonitor monitor, String sourceModelPath, boolean extractLayoutInfo)
      Extract the source model of a list of source folders. One source folder is the main project while a list of additional projects to analyze can be specified. The reason for one main folder is, that this one is used for example for the naming of the root inventory produced etc. All .java files recursively contained in the source folders will be used.
      Parameters:
      sourceFolders - The source folders to be extracted.
      monitor - The monitor to report the progress to.
      sourceModelPath - The absolute path to the directory to store information for extracted source model in. If null, no reference cache will be used for result resolving, which has negative impacts on performance.
      extractLayoutInfo - Option to extract layout information.
      Returns:
      The set of resources containing the extracted model. @ Identifies the extraction was not successful.
    • getId

      public String getId()
    • getLabel

      public String getLabel()
    • prepareResourceSet

      public void prepareResourceSet(ResourceSet rs, List<String> sourceModelPaths, boolean loadLayoutInformation)
    • getSourceResources

      public List<Resource> getSourceResources()