return emptyList();
}
final List<TypeDeclarationDescr> types = pkg.getTypeDeclarations();
final List<FactMetaModel> list = new ArrayList<FactMetaModel>( types.size() );
for ( final TypeDeclarationDescr td : types ) {
final FactMetaModel mm = new FactMetaModel();
mm.setName( td.getTypeName() );
mm.setSuperType( td.getSuperTypeName() );
final Map<String, TypeFieldDescr> fields = td.getFields();
for ( Map.Entry<String, TypeFieldDescr> en : fields.entrySet() ) {
final String fieldName = en.getKey();
final TypeFieldDescr descr = en.getValue();
final FieldMetaModel fm = new FieldMetaModel( fieldName,
descr.getPattern().getObjectType() );
mm.getFields().add( fm );
}
final Map<String, AnnotationDescr> annotations = td.getAnnotations();
for ( final Map.Entry<String, AnnotationDescr> en : annotations.entrySet() ) {
final String annotationName = en.getKey();
final AnnotationDescr descr = en.getValue();
final Map<String, String> values = descr.getValues();
final AnnotationMetaModel am = new AnnotationMetaModel( annotationName,
values );
mm.getAnnotations().add( am );
}
list.add( mm );
}