[ATL] #in not accepted lexically in ATL [message #95643] |
Tue, 18 November 2008 04:38  |
Eclipse User |
|
|
|
Hi,
ATL is having a stange behaviour and i have no idea how to resolve this:
I have a rule that should return a string that i will affect to an
enumeration literal, it may return #in or #out or #inout:
helper context UML2!Port def: getFlowDirection(stereotypeName : String,
taggedValue : String) : String =
if (selection1 = 'IN!in') then (#in)
else if (selection2= 'IN!out') then (#out)
else if (selection3 = 'IN!inout') then (#inout)
else (#inout)
endif
endif
endif;
Two problems occur here:
1-Writing #in is not accepted by the lexical verification, looks like
in is a reserved name or something.
2-If i change that to '#in' it compiles and executes but then i get a
strange behaviour; the #out cases work very well, but the #inout cases
return a java.lang.NullPointerException . The '#in' return an error
because it is expecting a #in string and this was the first problem.
Can anybody help with this problem?
Thanks in advance
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05202 seconds