moosetechnology / Famix

An abstract representation of source code. Famix is generic and can describe applications in multiple programming languages.
MIT License
12 stars 22 forks source link

Add #displayFullString to have an equivalent of #mooseName also usefu… #779

Closed jecisc closed 4 weeks ago

jecisc commented 4 weeks ago

…l for associations

NicolasAnquetil commented 4 weeks ago

Not sure I got it. What's wrong with mooseName ? Why duplicate it ?

jecisc commented 4 weeks ago

We have #mooseName returning the name of the entity and the containment but for associations it returns #noname. We have #displayString returning the name without the containment, and prints the source and target for associations but it does not print the containment.

In FamixDiff result we want to see the containment because when you have 10 #readObject method you need to find easily in which class/package they are. And you want a nice display for associations also. (This is feedback from Imen)

So I cannot use either of those two methods. I discussed with Clotilde and Anne. I first proposed to change the moose name of associations to print sources and target but Anne do not think this is right. So the solution we chose is to introduce a new variation of the printing method