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格式.
|
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 packagesCopyright © 2017. All rights reserved.