Created
December 19, 2012 02:24
-
-
Save masaru-b-cl/4333858 to your computer and use it in GitHub Desktop.
Javaのgetter,setterを生成する正規表現
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
項目名 private変数名 メソッド名 | |
商品コード shohinCd ShohinCd | |
/** \1 */\nprivate String \2; | |
↓ | |
/** 商品コード */ | |
private String shohinCd; | |
/**\n *\n * \1を設定します。\n * @param \1\n */\npublic void set\3(String \2) {\n this.\2 = \2;\n}\n\n/**\n * \1を取得します。\n *\n * @return \1\n */\npublic String get\3() {\n return \2;\n}\n | |
↓ | |
/** | |
* 商品コードを設定します。 | |
* | |
* @param shohinCd 商品コード | |
*/ | |
public void setShohinCd(String shohinCd) { | |
this.shohinCd = shohinCd; | |
} | |
/** | |
* 商品コードを取得します。 | |
* | |
* @return 商品コード | |
*/ | |
public String getShohinCd() { | |
return shohinCd; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment