MCPcopy Create free account
hub / github.com/apache/freemarker / main

Method main

src/test/java/freemarker/test/TreeView.java:68–82  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

66public class TreeView {
67
68 static public void main(String[] args) {
69 if (args.length == 0) {
70 usage();
71 return;
72 }
73 String filename = args[0];
74 Template t = null;
75 try {
76 t = new Template(filename, new FileReader(filename));
77 } catch (Exception e) {
78 e.printStackTrace();
79 return;
80 }
81 showTree(t);
82 }
83
84 static void showTree(Template t) {
85 JTree tree = new FreeMarkerTree(t);

Callers

nothing calls this directly

Calls 3

usageMethod · 0.95
showTreeMethod · 0.95
printStackTraceMethod · 0.45

Tested by

no test coverage detected