-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
29 lines (22 loc) · 956 Bytes
/
Copy pathMain.java
File metadata and controls
29 lines (22 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package requirejsExtractor;
import java.util.List;
import model.RequireJsModule;
import reporting.FunctionCallReport;
import analyzer.FunctionCallAnalyzer;
import analyzer.ReportToplevelMerger;
import export.FunctioncallHtmlExporter;
import extractor.Extractor;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Extractor x = new Extractor("brackets/");
RequireJsModule brackets = x.extractModules("brackets");
FunctionCallAnalyzer analyzer = new FunctionCallAnalyzer();
List<FunctionCallReport> functionCallReport = analyzer.getFunctionCallReports(brackets);
List<FunctionCallReport> topLevelFunctionCallReport = ReportToplevelMerger.mergeFunctionCallReports(functionCallReport);
new FunctioncallHtmlExporter(functionCallReport).export("report/report.html", "Brackets");
new FunctioncallHtmlExporter(topLevelFunctionCallReport).export("report/toplevel.html", "Brackets consolidated");
}
}