public class DocHelper extends Object
| 构造器和说明 |
|---|
DocHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
genDoc(ParseType pt,
GenContext context,
String... packages)
生成Word File.
|
String |
genHTML(ApiDoc doc)
生成文档.
|
String |
genHTML(ParseType pt,
GenContext context,
String... packages)
生成HTML文档.
|
static byte[] |
getClearGifData()
获取透明 1X1 像素的GIF图片数据.
|
List<JarInfo> |
jar(ApiDoc api,
String path,
String packageName,
String className,
String libPath)
Jar.
|
void |
setAntHome(String home)
Sets the ant home.
|
ApiDoc |
toDoc(ParseType pt,
GenContext context,
String... packages)
生成接口文档JSON格式.
|
String |
toJavascript(ParseType ptSpring,
GenContext context,
String packageNames,
String exportName)
输出JAvascript 脚本
|
void |
toWord(ApiDoc api,
String fileName)
生成WORD文档.
|
public void setAntHome(String home)
home - the new ant homepublic void toWord(ApiDoc api, String fileName) throws IOException
api - the apifileName - the file nameIOException - Signals that an I/O exception has occurred.public ApiDoc toDoc(ParseType pt, GenContext context, String... packages)
pt - the ptcontext - the contextpackages - the packagespublic String genHTML(ParseType pt, GenContext context, String... packages)
pt - the ptcontext - the contextpackages - the packagespublic static byte[] getClearGifData()
public String genDoc(ParseType pt, GenContext context, String... packages)
pt - the ptcontext - the contextpackages - the packagespublic List<JarInfo> jar(ApiDoc api, String path, String packageName, String className, String libPath)
api - the apipath - the pathpackageName - the package nameclassName - the class namelibPath - the lib pathpublic String toJavascript(ParseType ptSpring, GenContext context, String packageNames, String exportName)
ptSpring - the pt springcontext - the contextpackageNames - the package namesexportName - the export nameCopyright © 2018. All rights reserved.