Extractor API
→ central API of the LCE tool that orchestrates the language concept extraction and export process
- controlled by the user via CLI calls of the tool
Central Function: Detect and scan all projects that are located within a provided scan directory and export the extracted information to a JSON file
Steps:
- locating any source projects contained within the provided scan path
- determining any metadata needed for further processing (e.g. references to other projects, locations of important config files, etc.)
- initializing any required APIs
- executing the traverser for the individual source files to extract the language concepts from the code
- bundling the extracted concepts and the acquired project metadata into project objects
- executing the post processors on the project objects
- exporting the project objects to a JSON file
Implementation
- depends on the used CLI library
- simplest case: just a collection of static functions called by a
main
method or similar