use of org.mapstruct.ap.internal.model.DefaultMapperReference in project mapstruct by mapstruct.
the class MapperCreationProcessor method initReferencedMappers.
private List<MapperReference> initReferencedMappers(TypeElement element, MapperConfiguration mapperConfig) {
List<MapperReference> result = new LinkedList<MapperReference>();
List<String> variableNames = new LinkedList<String>();
for (TypeMirror usedMapper : mapperConfig.uses()) {
DefaultMapperReference mapperReference = DefaultMapperReference.getInstance(typeFactory.getType(usedMapper), MapperPrism.getInstanceOn(typeUtils.asElement(usedMapper)) != null, typeFactory, variableNames);
result.add(mapperReference);
variableNames.add(mapperReference.getVariableName());
}
return result;
}
Aggregations