use of abs.frontend.ast.Annotation in project abstools by abstools.
the class AnnotationHelper method getAnnotationsOfType.
public static java.util.List<Annotation> getAnnotationsOfType(List<Annotation> annos, String qualifiedName) {
ArrayList<Annotation> res = new ArrayList<>();
for (Annotation a : annos) {
if (a.getType().getQualifiedName().equals(qualifiedName)) {
DataConstructorExp de = (DataConstructorExp) a.getValue();
res.add(a);
}
}
return res;
}
Aggregations