如何解析 JSDoc
How to parse JSDoc
我有一个HTML file。里面有一些JSDoc是这样的:
/**
* If true, this slider is disabled. A disabled slider cannot be tapped
* or dragged to change the slider value.
*
* @attribute disabled
* @type boolean
* @default false
*/
我需要获取信息并放入 bean
class MyBean {
public String comment;
public String attribute;
public String type;
public String defaultValue;
}
如何解析我的 HTML 文件?
那里有几个 JSDoc 解析器。例如,查看 doctrine and jsdoc-parse。
我有一个HTML file。里面有一些JSDoc是这样的:
/**
* If true, this slider is disabled. A disabled slider cannot be tapped
* or dragged to change the slider value.
*
* @attribute disabled
* @type boolean
* @default false
*/
我需要获取信息并放入 bean
class MyBean {
public String comment;
public String attribute;
public String type;
public String defaultValue;
}
如何解析我的 HTML 文件?
那里有几个 JSDoc 解析器。例如,查看 doctrine and jsdoc-parse。