use of org.mapstruct.ap.internal.model.source.SourceMethod in project mapstruct by mapstruct.
the class MethodRetrievalProcessor method process.
@Override
public List<SourceMethod> process(ProcessorContext context, TypeElement mapperTypeElement, Void sourceModel) {
this.messager = context.getMessager();
this.typeFactory = context.getTypeFactory();
this.typeUtils = context.getTypeUtils();
this.elementUtils = context.getElementUtils();
MapperConfiguration mapperConfig = MapperConfiguration.getInstanceOn(mapperTypeElement);
if (!mapperConfig.isValid()) {
throw new AnnotationProcessingException("Couldn't retrieve @Mapper annotation", mapperTypeElement, mapperConfig.getAnnotationMirror());
}
List<SourceMethod> prototypeMethods = retrievePrototypeMethods(mapperTypeElement, mapperConfig);
return retrieveMethods(mapperTypeElement, mapperTypeElement, mapperConfig, prototypeMethods);
}
Aggregations