简体   繁体   中英

What does Xtend in Eclipse actually do?

I was trying to understand the software Xtend in Eclipse. I wanted to understand what does it actually do? Is it a software to form a link between Java and other programming platforms?

Could somebody give me a brief idea as to how is Xtend useful? Thanky ou for your help in advance.

Xtend is just a language feature add on for JAVA.

"The added value with Xtend is the very concise way to implement Java classes" - from: https://projects.eclipse.org/projects/tools.xtend

so it changes some syntax and add some new functionalities which intend to make JAVA programming slightly easier.

It is well integrated so you may use any existing JAVA library. Intro video here: https://eclipse.org/xtend/ that may help you understand more about it

one example of an Xtend langauge feature is how for each loop are used:

in JAVA:

for(String myString : stringCollection){
    //do some work
}

In Xtend:

stringCollection.forEach[
    //do some work
] 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM