Skip to content

Generics: give source and target to FamixTConcretization #1047

@NicolasAnquetil

Description

@NicolasAnquetil

Considering that associations represent dependencies, what is the source and target of FamixTConcretization?

ex: List<String> variable;
Reminder:

  • Between a typedEntity (eg. variable) and its type (List<String>) there is a FamixTEntityTyping association
  • If the type is Parametric (List) it is a FamixTParametricAssociation (between variable and java.util.List)
  • This FamixTParametricAssociation has an extra information: the FamixTConcretizations of the ParameterTypes (E of java.util.List<E>)
  • These FamixTConcretizations are also associations: between a typeArgument (String) and a typeParameter (E)

so back to the initial question: what source and target for these FamixTConcretization ?

The target seems obvious: the typeArgument (String) because there is a dependency to it.
I propose that the source is the typed entity (variable) which is a bit strange because the source for FamixTConcretization would not be in this association but in its parent association.

This is strange, but from a dependency point of view, it makes sense...

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions