Class ParsedDependencies

java.lang.Object
se.kth.depclean.util.json.ParsedDependencies

public class ParsedDependencies extends Object
Uses the DepClean analysis results and the dependency tree of the project to produce a JSON file. This file represent the structure of the dependency tree enriched with metadata of the usage or not of each dependency.
  • Constructor Details

    • ParsedDependencies

      public ParsedDependencies()
  • Method Details

    • parseTreeToJson

      public String parseTreeToJson() throws fr.dutra.tools.maven.deptree.core.ParseException, IOException
      Creates string with the JSON representation of the enriched dependency tree of the Maven project.
      Returns:
      The JSON representation of the dependency tree of the project with additional metadata of the used/unused dependencies.
      Throws:
      fr.dutra.tools.maven.deptree.core.ParseException - if there are parsing errors.
      IOException - if the JSON file cannot be written.