Package builder

Class FunctionsExtractor

java.lang.Object
builder.FunctionsExtractor

public class FunctionsExtractor extends Object
Class used to extract the functions from the MEOS library. Run with directly with java through the main class
Since:
27/06/2023
Author:
Killian Monnier
  • Field Details

    • FUNCTION_PATTERN

      private static final String FUNCTION_PATTERN
      See Also:
    • TYPES_PATTERN

      private static final String TYPES_PATTERN
      See Also:
    • inputFilePath

      private Path inputFilePath
    • outputFunctionsFilePath

      private Path outputFunctionsFilePath
    • outputTypesFilePath

      private Path outputTypesFilePath
    • currentDir

      String currentDir
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args) throws URISyntaxException
      Launch process of extraction.
      Parameters:
      args - arguments
      Throws:
      URISyntaxException - thrown when resources not found
    • getStructureNames

      public static ArrayList<String> getStructureNames(String filePath)
      Retrieves structure names from file.
      Parameters:
      filePath - file path
      Returns:
      list of structure names
    • getTypesFromFile

      private List<String> getTypesFromFile()
      Get types from a file.
      Returns:
      the list of lines