a problem with wrappers which have parameters [message #1225555] |
Mon, 30 December 2013 06:04 |
duke vah Messages: 33 Registered: December 2013 |
Member |
|
|
Hi,
I wanna write a wrapper with java but I have a problem when I want to add a parameter.
In following code the function TestCheck works but TestCheck2 doesn't work.
what should I do? The compiler says that "... doesn't exist for service ..."
Thanks in advance
------------------------------------------
package AUTCPP.javaWrapper.files;
import org.eclipse.uml2.uml.*;
public class Test {
public boolean TestCheck (Boolean t) {
return t;
}
public boolean TestCheck2 (Boolean t, StateMachine aSM) {
return t;
}
}
-------------------------------------------
[Updated on: Mon, 30 December 2013 06:04] Report message to a moderator
|
|
|
|
|
Re: problem with wrapper [message #1226044 is a reply to message #1225880] |
Tue, 31 December 2013 14:05 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
HI
You might care to note the advice in
http://wiki.eclipse.org/OCL/ForumNetiquette
Your code looks sensible, but it is very confusing to have to guess at
all the information you don't provide.
Regards
Ed Willink
On 31/12/2013 02:58, duke vah wrote:
> Sorry :)
> I am using Acceleo.
> I create a .mtl file from .java file and call the queries inside of a
> template. The following code shows the .mtl file. As I mentioned
> TestCheck works but TestCheck2 doesn't work.
>
> -----------------------------------------------------------
> [comment encoding = Cp1252 /]
> [module test2('http://www.eclipse.org/uml2/4.0.0/UML')/]
>
> [query public TestCheck(arg0 : Boolean) : Boolean
> = invoke('AUTCPP.javaWrapper.files.Test',
> 'TestCheck(java.lang.Boolean)', Sequence{arg0}) /]
>
> [query public TestCheck2(arg0 : Boolean, arg1 : StateMachine) : Boolean
> = invoke('AUTCPP.javaWrapper.files.Test',
> 'TestCheck2(java.lang.Boolean, org.eclipse.uml2.uml.StateMachine)',
> Sequence{arg0, arg1}) /]
> ------------------------------------------------------------
>
> I don't know when I add some parameters form UML metamodel, this issue
> happens. The indicated error is shown in eclipse environment when I
> call TestCkeck2 in a template.
>
> Thanks
>
>
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03853 seconds