[英]Doxygen: how to reference java generic interface in documentation
I have some Java interface with doxygen documentation 我有一些带有Doxygen文档的Java接口
public interface Service< T , U > {
...
}
Doxygen is creating docu for class Service< T, U >
. Doxygen正在为
Service< T, U >
类创建文档。 When I'm trying to reference this docu page from some other page with @ref tag @ref Service< T , U>
, warning is generated: 当我尝试使用@ref标签
@ref Service< T , U>
从其他页面引用此文档页面时,将生成警告:
warning: unable to resolve reference to 'Service' for \ref command
It looks like @ref is not friendly with "<" in the name. 看起来@ref对名称中的“ <”不友好。
Does anyone know some workaround to reference class with "<" sing in the name? 有人知道使用名称中的“ <”引用类的某些解决方法吗?
I tried to reproduce your problem with the following example: 我尝试通过以下示例重现您的问题:
/** A service */
public interface Service< T , U > {
}
/** @mainpage
* See @ref Service<T,U> "the service interface" for details.
*/
but it worked fine (as I would expect). 但效果很好(正如我期望的那样)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.