本文整理汇总了Java中net.winroad.wrdoclet.taglets.WRReturnCodeTaglet类的典型用法代码示例。如果您正苦于以下问题:Java WRReturnCodeTaglet类的具体用法?Java WRReturnCodeTaglet怎么用?Java WRReturnCodeTaglet使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WRReturnCodeTaglet类属于net.winroad.wrdoclet.taglets包,在下文中一共展示了WRReturnCodeTaglet类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import net.winroad.wrdoclet.taglets.WRReturnCodeTaglet; //导入依赖的package包/类
public static void main(String[] args) {
String[] docArgs = new String[] {
"-doclet",
HtmlDoclet.class.getName(),
"-docletpath",
new File(System.getProperty("user.dir"), "target/classes")
.getAbsolutePath(),
"-taglet",
WRTagTaglet.class.getName(),
WRMemoTaglet.class.getName(),
WRReturnCodeTaglet.class.getName(),
"-tagletpath",
new File(System.getProperty("user.dir"), "target/classes")
.getAbsolutePath(),
"-encoding",
"utf-8",
"-charset",
"utf-8",
"-sourcepath",
"D:/Git/wrdoclet/wrdoclet-demosite/src/main/java",
"net.winroad.Controller",
"net.winroad.Models",
"org.springframework.web.bind.annotation",
"-classpath",
new File(
System.getProperty("user.home"),
".m2/repository/org/springframework/spring-web/3.2.3.RELEASE/spring-web-3.2.3.RELEASE.jar")
.getAbsolutePath(),
"-d",
new File(System.getProperty("user.dir"), "target/doc")
.getAbsolutePath() };
com.sun.tools.javadoc.Main.execute(docArgs);
System.out.println("Doc generated to: "
+ new File(System.getProperty("user.dir"), "target/doc")
.getAbsolutePath());
}
示例2: getReturnCode
import net.winroad.wrdoclet.taglets.WRReturnCodeTaglet; //导入依赖的package包/类
protected String getReturnCode(MethodDoc methodDoc) {
Tag[] tags = methodDoc.tags(WRReturnCodeTaglet.NAME);
return WRReturnCodeTaglet.concat(tags);
}