Reputation: 520
// java
interface MyInterface {
class MyInnerClass {
public static final String myInnerStaticMethod() {
return "myInnerStaticMethod";
}
}
}
How can I call this from an Xtend method?
Upvotes: 2
Views: 314
Reputation: 1841
Actually, the latest version of Xtend (>2.4.1) uses much nicer syntax.
// xtend
def test() {
MyInterface.MyInnerClass.myInnerStaticMethod
}
Upvotes: 2
Reputation: 520
// xtend
def test() {
MyInterface$MyInnerClass::myInnerStaticMethod
}
Upvotes: 2