{"id":270,"date":"2012-04-11T12:09:27","date_gmt":"2012-04-11T12:09:27","guid":{"rendered":"http:\/\/www.lexicalscope.com\/blog\/?p=270"},"modified":"2012-04-11T12:09:27","modified_gmt":"2012-04-11T12:09:27","slug":"jewelcli-accessor-method-names","status":"publish","type":"post","link":"https:\/\/www.lexicalscope.com\/blog\/2012\/04\/11\/jewelcli-accessor-method-names\/","title":{"rendered":"JewelCli accessor method names"},"content":{"rendered":"<p><a href=\"http:\/\/jewelcli.lexicalscope.com\">JewelCli<\/a> 0.8.2 and above supports query methods with or without the &#8220;get&#8221; prefix:<\/p>\n<pre lang=\"java\">\r\npublic interface MyExample\r\n{\r\n  @Option\r\n  String getMyOption();\r\n\r\n  @Option\r\n  String myOtherOption();\r\n}\r\n<\/pre>\n<p>The <a href=\"http:\/\/jewelcli.lexicalscope.com\/usage-instance.html\" title=\"instance usage strategy\">instance strategy<\/a> now supports mutators with or without the &#8220;set&#8221; prefix:<\/p>\n<pre lang=\"java\">\r\npublic class MyExample\r\n{\r\n  @Option\r\n  void setMyOption(String value) {}\r\n\r\n  @Option\r\n  void myOtherOption(String value) {}\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>JewelCli 0.8.2 and above supports query methods with or without the &#8220;get&#8221; prefix: public interface MyExample { @Option String getMyOption(); @Option String myOtherOption(); } The instance strategy now supports mutators with or without the &#8220;set&#8221; prefix: public class MyExample { &hellip; <a href=\"https:\/\/www.lexicalscope.com\/blog\/2012\/04\/11\/jewelcli-accessor-method-names\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[11],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-jewelcli"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2e3P7-4m","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/comments?post=270"}],"version-history":[{"count":3,"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/posts\/270\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lexicalscope.com\/blog\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}