aboutsummaryrefslogtreecommitdiffstats
path: root/etc/srecode/java.srt
diff options
context:
space:
mode:
Diffstat (limited to 'etc/srecode/java.srt')
-rw-r--r--etc/srecode/java.srt21
1 files changed, 19 insertions, 2 deletions
diff --git a/etc/srecode/java.srt b/etc/srecode/java.srt
index a4a6fc2e863..e1fbb50eff6 100644
--- a/etc/srecode/java.srt
+++ b/etc/srecode/java.srt
@@ -43,6 +43,23 @@ package {{FILENAME_AS_PACKAGE}};
43---- 43----
44bind "e" 44bind "e"
45 45
46template empty-main :file :user :time :java :indent
47"Fill out an empty file with a class having a static main method"
48sectiondictionary "CLASSSECTION"
49set NAME macro "FILENAME_AS_CLASS"
50----
51{{>:filecomment}}
52
53package {{FILENAME_AS_PACKAGE}};
54
55{{<CLASSSECTION:declaration:class}}
56public static void main(String args[]) {
57 {{^}}
58}
59{{/CLASSSECTION}}
60----
61bind "l"
62
46context declaration 63context declaration
47 64
48template import :blank :indent 65template import :blank :indent
@@ -74,8 +91,8 @@ Override this to affect applications, or the outer class structure for
74the user-facing template." 91the user-facing template."
75---- 92----
76{{>:declaration:javadoc-class}} 93{{>:declaration:javadoc-class}}
77public Class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} 94public class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}}
78{ 95{
79 {{^}} 96 {{^}}
80}; 97};
81---- 98----