Added snippets for Emacs
This commit is contained in:
13
emacs/.emacs.d/snippets/java-mode/gse
Normal file
13
emacs/.emacs.d/snippets/java-mode/gse
Normal file
@@ -0,0 +1,13 @@
|
||||
#name : get/set/member variable
|
||||
# --
|
||||
private ${1:String} ${2:name};
|
||||
|
||||
public void set${2:$(capitalize text)}(final $1 p${2:$(capitalize text)}) {
|
||||
$2 = p${2:$(capitalize text)};
|
||||
}
|
||||
|
||||
public $1 get${2:$(capitalize text)}() {
|
||||
return $2;
|
||||
}
|
||||
$0
|
||||
|
||||
Reference in New Issue
Block a user