Login  Register

Re: add allUsing:

Posted by Tudor Girba-2 on Aug 05, 2019; 9:06am
URL: https://forum.world.st/add-allUsing-tp5101947p5101948.html

Hi,

Interesting. Is this added on the instance side or MooseModel?

Cheers,
Tudor


> On Aug 5, 2019, at 11:00 AM, Benoît Verhaeghe <[hidden email]> wrote:
>
> Hi all,
>
> We have added the method "allUsing:".
> It takes a Trait as a parameter and will return all the entities in your model that use the trait.
>
> Example:
> mooseModel allUsing: FamixTClass
> will return all the FamixJavaClass and FamixJavaInnerClass (if FamixJavaInnerClass --|> FamixJavaClass)
>
> It will be the main method if you want to query your model with abstract entities.
>
> Benoît
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
feenk.com

"We can create beautiful models in a vacuum.
But, to get them effective we have to deal with the inconvenience of reality."

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