Xtend Reference Documentation ãããã¤ã¾ãã§ã ãã¡ã¤ã«å½¢å¼ Xtend ãã¡ã¤ã«ã®æ§æ㯠Java ã¨åãã packageãimportãclass ã®é çªã«ä¸¦ã¶ãè¡æ«ã®ã»ãã³ãã³ã¯ä¸è¦ã package com.acme import java.util.List class MyClass { String ^Lrst(List<String> elements) { return elements.get(0) } } ã¤ã³ãã¼ã ã¹ã¿ãã£ãã¯ã¤ã³ãã¼ãã¯ã¯ã¤ã«ãã«ã¼ãã§ã®ã¿æå®å¯è½ãjava.lang ã¯æé»çã«ã¤ã³ãã¼ããããã import static java.util.Collections.* extension ãä»ãã¦ã¹ã¿ãã£ãã¯ã¤ã³ãã¼ãããã¨ãæ¢åã®ã¯ã©ã¹ã«ããããã¤ã³ãã¼ãããé¢æ°ãå ããå®ç¾©ããã¦ããããã«æ¸ããã¨ãã§ãã
Eclipse Foundationã¯å æ¥ï¼Xtend 2.4 ã®ãªãªã¼ã¹ãçºè¡¨ãããXtendã¯éçåä»ããæã£ãJava風ããã°ã©ã è¨èªã§ãããè¨è¿°ãããã³ã¼ãã¯Javaã«ã³ã³ãã¤ã«ããã¦ï¼JVM (ãããã¯Androidãªã©JVMã©ã¤ã¯ãªã·ã¹ãã ) ä¸ã§åä½ããã ScalaãKotlinã¨ãã£ãä»ã®JVMãã¼ã¹ã®ã³ã³ãã¤ã«è¨èªã¨ã¯ç°ãªãï¼Xtendã¯Javaã³ã¼ãã«å¤æãããå¾ï¼æ¨æºçãªJavaã³ã³ãã¤ã©ã§ã³ã³ãã¤ã«ãããããããã£ã¦çæãããã³ã¼ãã«ä¸ä½äºææ§ã®åé¡ã¯åå¨ããªãã ããã«GroovyãJRuby/Jythonãªã©ã®ã¤ã³ã¿ããªã¿è¨èªã¨ãç°ãªãï¼éçåä»ãã§ãããªããï¼ã·ã³ãã«ãªã³ã¼ãè¨è¿°ãå¯è½ã«ããåæ¨æ¸¬ã®æ©è½ãåãã¦ãããããã«ãã£ã¦ãªãã¡ã¯ã¿ãªã³ã°ãåã«ä¾åããè£å®æ©è½ãIDEä¸ã§å®ç¾ããã¦ããã InfoQã§ã¯æ¨å¹´ã«ã 1.0ã®ãªãªã¼ã¹ ãä¼ãã¦ãããï¼ãã®å¾
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}