Merge pull request #5142 from sei40kr/java-file-templates

lang/java: Add file templates
This commit is contained in:
Henrik Lissner 2021-06-05 12:33:08 -04:00 committed by GitHub
commit 5038ba9826
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: Java annotation type file template
# --
package `(+java-current-package)`;
public @interface `(+java-current-class)`
{
$0
}

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# name: Java file template
# name: Java class file template
# --
package `(+java-current-package)`;

View file

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: Java enum file template
# --
package `(+java-current-package)`;
public enum `(+java-current-class)`
{
$0
}

View file

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: Java interface file template
# --
package `(+java-current-package)`;
public interface `(+java-current-class)`
{
$0
}

View file

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: Java record file template
# --
package `(+java-current-package)`;
public record `(+java-current-class)`($0) $1
{
}