SHARE
TWEET

java getter setter snippet for sublime

xcooper May 7th, 2014 248 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <snippet>
  2.         <content><![CDATA[
  3. private ${1:returnType} ${2:property};
  4.  
  5. public ${1:returnType} get${2/^(.)(.*)/\U$1\E$2/}(){
  6.         return ${2:property};
  7. }
  8.  
  9. public void set${2/^(.)(.*)/\U$1\E$2/}(${1:returnType} ${2:property}){
  10.         this.${2:property} = ${2:property};
  11. }
  12. ]]></content>
  13.         <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
  14.         <tabTrigger>property</tabTrigger>
  15.         <!-- Optional: Set a scope to limit where the snippet will trigger -->
  16.         <scope>source.java</scope>
  17. </snippet>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top