author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 13 Aug 2016 18:22:31 +0300 | |
changeset 1414 | 436e2cb0d9c0 |
parent 1205 | 40a4c859a994 |
permissions | -rw-r--r-- |
1150 | 1 |
|
2 |
set mode "java-mode" |
|
3 |
set escape_start "[[" |
|
4 |
set escape_end "]]" |
|
5 |
||
6 |
context my |
|
7 |
||
8 |
set comment_start "/**" |
|
9 |
set comment_end " */" |
|
10 |
set comment_prefix " *" |
|
11 |
||
12 |
;; :file :user :time |
|
13 |
||
14 |
template empty :java |
|
15 |
"Fill out an empty file." |
|
16 |
---- |
|
17 |
package [[FILENAME_AS_PACKAGE]]; |
|
18 |
||
19 |
import java.util.*; |
|
20 |
||
21 |
public class [[FILENAME_AS_CLASS]] { |
|
22 |
||
23 |
public [[FILENAME_AS_CLASS]]() {[[^]] } |
|
24 |
||
25 |
} |
|
26 |
---- |
|
27 |
||
28 |
template getset :indent |
|
29 |
"Getter/Setter." |
|
30 |
---- |
|
31 |
private [[?TYPE]] [[?NAME]]; |
|
32 |
/** [[^]] */ |
|
1205
40a4c859a994
Fix error - using standard function instead custom and not defined.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
33 |
public [[TYPE]] get[[NAME:upcase-initials]]() { return [[NAME]]; } |
1150 | 34 |
/** */ |
1205
40a4c859a994
Fix error - using standard function instead custom and not defined.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
35 |
public void set[[NAME:upcase-initials]]([[TYPE]] [[NAME]]) { this.[[NAME]] = [[NAME]]; } |
1150 | 36 |
|
37 |
---- |
|
38 |