Updates: Status: Fixed
Comment #4 on issue 495 by andreho...@gmail.com: Parametrized Types - Generics http://code.google.com/p/moose-technology/issues/detail?id=495
It was added the attributes *parameterTypes* to FAMIXClass; and *declaredArgumentTypes* to FAMIXMethod and FAMIXStructuralEntity.
The parameterTypes is to deal with Java class which contains parameters in its declaration. Example:
public class Dictionary<A,B,C> { … }
The declaredArgumentTypes is to deal with code which contains arguments in its declatedType, i.e., in FAMIXMethod (its return type) and in FAMIXStructuralEntity (attribute, parameter, local variable, etc.). Examples:
public Map<B,NamedEntity> mapBind;
public Collection<T> getEntityByName(Class<T> fmxClass, String name) { Collection<T> ret = new LinkedList<T>(); Collection<NamedEntity> l_name = mapName.get(name); … }
There are tests in FamixJavaTest>>testImportArgumentTypes and FamixJavaTest>>testImportParameterTypes using these attributes.