ãã¿å æ¥åç³»ã®Javaããã°ã©ãã¼ãç¥ã£ã¦ããã¹ã10åã®Bad Partsã¨ãã®å¯¾ç çµè«ããå ã«è¨ãã¨ã3ã¨10以å¤ã¯çµæ§ç´æ¥çã«scalaã§è§£æ±ºã§ããã¨ããããjavaã«æ¯ã¹ã¦scalaã®æ¹ã便å©ã ã¨ãããã¾ãã*1 ãã¨ãå ãã¿ã®blogã®äººã¯groovy詳ããã¿ããã§ããã»ã»ã» groovyã¨scalaæ¯ã¹ãã¨groovyã®æ¹ãæ軽ã§ä¾¿å©ã ã£ãããscalaã®ã»ããåå®å ¨ã ã£ãã*2ããããããããããã¾ããããgroovyãã¾ã詳ãããªãã®ã§ããã®è¾ºã®è¨åã¨ããããæ¯è¼ã¯ããã¦ããã¾ãã*3 1.æ¨æºAPIã®ãã§ãã¯ä¾å¤ãæ±ãã«ãã ãã§ãã¯ä¾å¤ã£ã¦ãªã«ããããããã®?(ã»Ïã») java Field field; try { field = getClass().getField("testField"); Object value = field.get(this); }
{{#tags}}- {{label}}
{{/tags}}