This is an excellent point!
Alexandre
On 30 Nov 2011, at 14:00, Nicolas Anquetil wrote:
As all of us know, Famix recognizes 4 types of associations (reference, access,
inheritance, invocation) and Moosechef was built upon these dependencies
(queryAllOutgoingReferences, ...)
For convenience, it adds queryAllOutgoingDependencies
but this will miss a good deal of actual dependencies, because many of them are not
expressed by associations:
- return type of a method
- type of a variable
- exceptions caught, thrown
- parameter types in parameterized classes
- use of annotations
- other?
Since we now have a nice general API to query dependencies, it would be nicer if it were
complete, ...
A possible solution would to rename queryAllOutgoingDependencies into
queryAllOutgoingAssociations and change queryAllOutgoingDependencies to "do the right
thing"
Or maybe invent new "virtual associations" (like ofType) and create queries for
these associations, ...
nicolas
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.