Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [Xbase] How to append left operand of XAssignment to XMemberFeatureCall
[Xbase] How to append left operand of XAssignment to XMemberFeatureCall [message #1385362] Thu, 05 June 2014 20:07
Heinrich Müller is currently offline Heinrich MüllerFriend
Messages: 5
Registered: May 2014
Junior Member
Hi there.

I have the following problem:
I want to make a java feature call to a method that was declared in a static extension class:

var response response = ...
var int result = response.javaCall("testing")


Now I need to implicitly add the type of the left side of this assignment to the parameters that this function will be invoked with, because the original signature is like this:
(It's legacy code and the users can't be bothered to know about java types.)

public static <T> T javaCall(Response response, String in, Class<T> type)


If this is possible, how can this be done?

Thanks for any hints Wink

[Updated on: Thu, 05 June 2014 20:09]

Report message to a moderator

Previous Topic:Xtext Enums
Next Topic:Embedding DSL in Java / Creating Xtext model based on Java
Goto Forum:
  


Current Time: Fri Apr 19 01:15:44 GMT 2024

Powered by FUDForum. Page generated in 0.02366 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top