use of kalang.ast.ClassNode in project kalang by kasonyang.
the class ClassType method getTypeArgumentsMap.
public Map<GenericType, Type> getTypeArgumentsMap() {
ClassNode clz = getClassNode();
GenericType[] gts = clz.getGenericTypes();
Map<GenericType, Type> ret = new HashMap();
if (typeArguments.length > 0) {
for (int i = 0; i < gts.length; i++) {
ret.put(gts[i], typeArguments[i]);
}
}
return ret;
}
Aggregations