Parametrized Types

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Parametrized Types

Andre Hora
Hello,

I would like to use Parametrized Types in Moose to deal with (Java) code like this: Map<B,NamedEntity>, where B and NamedEntity are arguments of Map.
I didn't find anything in the meta-model that allows me to represent that structure.
What is the best way to have this in the meta-model? Create a parametrizedTypes property in FAMIXClass?

Thanks!

--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Parametrized Types

Alexandre Bergel
> I would like to use Parametrized Types in Moose to deal with (Java) code like this: Map<B,NamedEntity>, where B and NamedEntity are arguments of Map.
> I didn't find anything in the meta-model that allows me to represent that structure.
> What is the best way to have this in the meta-model? Create a parametrizedTypes property in FAMIXClass?

Maybe parameterTypes is a better name

Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Parametrized Types

Tudor Girba
Hi Andre,

That would be a great addition to the Famix-Java package. Please open a ticket first.

And indeed, parameterTypes is better.

Cheers,
Doru


On 15 Jan 2011, at 00:17, Alexandre Bergel wrote:

>> I would like to use Parametrized Types in Moose to deal with (Java) code like this: Map<B,NamedEntity>, where B and NamedEntity are arguments of Map.
>> I didn't find anything in the meta-model that allows me to represent that structure.
>> What is the best way to have this in the meta-model? Create a parametrizedTypes property in FAMIXClass?
>
> Maybe parameterTypes is a better name
>
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"The coherence of a trip is given by the clearness of the goal."





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Parametrized Types

Andre Hora
Ok! I opened the ticket.
Thanks Alexandre and Doru.

On Sat, Jan 15, 2011 at 12:27 AM, Tudor Girba <[hidden email]> wrote:
Hi Andre,

That would be a great addition to the Famix-Java package. Please open a ticket first.

And indeed, parameterTypes is better.

Cheers,
Doru


On 15 Jan 2011, at 00:17, Alexandre Bergel wrote:

>> I would like to use Parametrized Types in Moose to deal with (Java) code like this: Map<B,NamedEntity>, where B and NamedEntity are arguments of Map.
>> I didn't find anything in the meta-model that allows me to represent that structure.
>> What is the best way to have this in the meta-model? Create a parametrizedTypes property in FAMIXClass?
>
> Maybe parameterTypes is a better name
>
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"The coherence of a trip is given by the clearness of the goal."





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev