X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/c6b5fe1e945c664a0d696ae6eea9721235baf2f1..ce8171797dafbde765170b79e5f154afc4872e86:/etc/srecode/java.srt diff --git a/etc/srecode/java.srt b/etc/srecode/java.srt index a4a6fc2e86..65cd3a54f4 100644 --- a/etc/srecode/java.srt +++ b/etc/srecode/java.srt @@ -1,6 +1,6 @@ ;; java.srt -;; Copyright (C) 2009-2013 Free Software Foundation, Inc. +;; Copyright (C) 2009-2014 Free Software Foundation, Inc. ;; Author: Eric M. Ludlam @@ -43,6 +43,23 @@ package {{FILENAME_AS_PACKAGE}}; ---- bind "e" +template empty-main :file :user :time :java :indent +"Fill out an empty file with a class having a static main method" +sectiondictionary "CLASSSECTION" +set NAME macro "FILENAME_AS_CLASS" +---- +{{>:filecomment}} + +package {{FILENAME_AS_PACKAGE}}; + +{{:declaration:javadoc-class}} -public Class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} -{ +public class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} +{ {{^}} }; ----