aboutsummaryrefslogtreecommitdiffstats
path: root/etc/srecode/java.srt
diff options
context:
space:
mode:
authorKenichi Handa2013-04-05 23:17:55 +0900
committerKenichi Handa2013-04-05 23:17:55 +0900
commitb7a6f9f7919b7fc0871ae768b58f8e746aa7dd9f (patch)
treef32c8cce416e346d2953f063a0f22e95382cf57e /etc/srecode/java.srt
parent251e91474c91e16b101502c2ed7c05fc13e4ecea (diff)
parent73931ad14ad7a51d91f10b19ae9ca8cadb256916 (diff)
downloademacs-b7a6f9f7919b7fc0871ae768b58f8e746aa7dd9f.tar.gz
emacs-b7a6f9f7919b7fc0871ae768b58f8e746aa7dd9f.zip
merge trunk
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----