[Xtend] access static field/method [message #659299] |
Fri, 11 March 2011 22:09  |
|
Hi,
something I always wanted to know but never dared to ask: How can I
access a static field or method of a Java class/interface from Xtend?
E.g., how can I retrieve the EcorePackage.eINSTANCE field? (Which I
actually need for retrieving ecore metamodel types).
Cheers,
Jens
|
|
|
|
Re: [Xtend] access static field/method [message #659344 is a reply to message #659340] |
Sat, 12 March 2011 14:25  |
|
On 12.03.11 14:35, Christian Dietrich wrote:
> what about writing a JAVA Extension that calls a Helper Method in a Java
> Class that returns the static member.
That's how I solved that problem hitherto. However I was wondering if
there is no way of doing that in Xtend/Xpand directly.
Cheers,
Jens
|
|
|
Powered by
FUDForum. Page generated in 0.02440 seconds