use of org.eclipse.ceylon.model.loader.mirror.TypeParameterMirror in project ceylon by eclipse.
the class ReflectionUtils method getTypeParameters.
public static List<TypeParameterMirror> getTypeParameters(GenericDeclaration decl) {
TypeVariable<?>[] javaTypeParameters = decl.getTypeParameters();
List<TypeParameterMirror> typeParameters = new ArrayList<TypeParameterMirror>(javaTypeParameters.length);
for (Type javaTypeParameter : javaTypeParameters) typeParameters.add(new ReflectionTypeParameter(javaTypeParameter));
return typeParameters;
}
Aggregations