SafeHtmlTemplatesImplMethodCreator.SAFE_HTML_FQCN)) {
throw error(logger, "All methods in interfaces extending "
+ "SafeHtmlTemplates must have a return type of "
+ SafeHtmlTemplatesImplMethodCreator.SAFE_HTML_FQCN + ".");
}
Template templateAnnotation = targetMethod.getAnnotation(Template.class);
if (templateAnnotation == null) {
throw error(logger, "Required annotation @Template not present "
+ "on interface method " + targetMethod.toString());
}
String template = templateAnnotation.value();
JParameter[] params = targetMethod.getParameters();
emitMethodBodyFromTemplate(logger, template, params);
}