return mapper;
}
private Decorator getDecorator(TypeElement element, List<SourceMethod> methods) {
DecoratedWithPrism decoratorPrism = DecoratedWithPrism.getInstanceOn( element );
if ( decoratorPrism == null ) {
return null;
}
TypeElement decoratorElement = (TypeElement) typeUtils.asElement( decoratorPrism.value() );
if ( !typeUtils.isAssignable( decoratorElement.asType(), element.asType() ) ) {
messager.printMessage(
Kind.ERROR,
String.format( "Specified decorator type is no subtype of the annotated mapper type." ),