code_junkie

Eclipse getter/setter format

Nov 13th, 2011
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public String getAbc() { return abc; }
  2.  
  3. public String getAbc() {
  4. return abc;
  5. }
  6.  
  7. (?m)((?:public |private |protected )?[w$]+) (get|set|is)([w$]+)(([w$]+ [w$]+)?) {s+(return [w$]+;|this.[w$]+ = [w$]+;)s+}
  8.  
  9. $1 $2$3($4) { $5 }
Add Comment
Please, Sign In to add comment