diff options
| author | Stephen Berman | 2013-06-14 22:07:55 +0200 |
|---|---|---|
| committer | Stephen Berman | 2013-06-14 22:07:55 +0200 |
| commit | bd358779861f265a7acff31ead40172735af693e (patch) | |
| tree | 345217a9889dbd29b09bdc80a94265c17719d41f /etc/srecode/java.srt | |
| parent | 2a97b47f0878cbda86cb6ba0e7e744924810b70e (diff) | |
| parent | f7394b12358ae453a0c8b85fc307afc1b740010d (diff) | |
| download | emacs-bd358779861f265a7acff31ead40172735af693e.tar.gz emacs-bd358779861f265a7acff31ead40172735af693e.zip | |
Merge from trunk.
Diffstat (limited to 'etc/srecode/java.srt')
| -rw-r--r-- | etc/srecode/java.srt | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/etc/srecode/java.srt b/etc/srecode/java.srt index 706b6b39d57..e1fbb50eff6 100644 --- a/etc/srecode/java.srt +++ b/etc/srecode/java.srt | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;; java.srt | 1 | ;; java.srt |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2009-2012 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2009-2013 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Eric M. Ludlam <eric@siege-engine.com> | 5 | ;; Author: Eric M. Ludlam <eric@siege-engine.com> |
| 6 | 6 | ||
| @@ -43,6 +43,23 @@ package {{FILENAME_AS_PACKAGE}}; | |||
| 43 | ---- | 43 | ---- |
| 44 | bind "e" | 44 | bind "e" |
| 45 | 45 | ||
| 46 | template empty-main :file :user :time :java :indent | ||
| 47 | "Fill out an empty file with a class having a static main method" | ||
| 48 | sectiondictionary "CLASSSECTION" | ||
| 49 | set NAME macro "FILENAME_AS_CLASS" | ||
| 50 | ---- | ||
| 51 | {{>:filecomment}} | ||
| 52 | |||
| 53 | package {{FILENAME_AS_PACKAGE}}; | ||
| 54 | |||
| 55 | {{<CLASSSECTION:declaration:class}} | ||
| 56 | public static void main(String args[]) { | ||
| 57 | {{^}} | ||
| 58 | } | ||
| 59 | {{/CLASSSECTION}} | ||
| 60 | ---- | ||
| 61 | bind "l" | ||
| 62 | |||
| 46 | context declaration | 63 | context declaration |
| 47 | 64 | ||
| 48 | template import :blank :indent | 65 | template import :blank :indent |
| @@ -74,8 +91,8 @@ Override this to affect applications, or the outer class structure for | |||
| 74 | the user-facing template." | 91 | the user-facing template." |
| 75 | ---- | 92 | ---- |
| 76 | {{>:declaration:javadoc-class}} | 93 | {{>:declaration:javadoc-class}} |
| 77 | public Class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} | 94 | public class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} |
| 78 | { | 95 | { |
| 79 | {{^}} | 96 | {{^}} |
| 80 | }; | 97 | }; |
| 81 | ---- | 98 | ---- |