Package org.splevo.jamopp.extraction
Class JaMoPPSoftwareModelExtractor
java.lang.Object
org.splevo.jamopp.extraction.JaMoPPSoftwareModelExtractor
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractSoftwareModelFromFolders
(Iterable<File> sourceFolders, IProgressMonitor monitor, String sourceModelPath, boolean extractLayoutInfo) Extract the source model of a list of source folders.extractSoftwareModelFromProjects
(Collection<org.eclipse.jdt.core.IJavaProject> projects, IProgressMonitor monitor, String sourceModelPath, boolean extractLayoutInfo) Extract the source model of a list of java projects.getId()
getLabel()
void
prepareResourceSet
(ResourceSet rs, List<String> sourceModelPaths, boolean loadLayoutInformation)
-
Field Details
-
EXTRACTOR_EXTRACT_LAYOUT_BY_DEFAULT
public static final boolean EXTRACTOR_EXTRACT_LAYOUT_BY_DEFAULT- See Also:
-
EXTRACTOR_ID
- See Also:
-
-
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. Ifnull
, 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. Ifnull
, 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
-
getLabel
-
prepareResourceSet
public void prepareResourceSet(ResourceSet rs, List<String> sourceModelPaths, boolean loadLayoutInformation) -
getSourceResources
-