I have an HTML file . There are some JSDoc inside like this:
/**
* 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
*/
I need to get info and put into a bean
class MyBean {
public String comment;
public String attribute;
public String type;
public String defaultValue;
}
How do I parse my HTML file?
There are several JSDoc parsers out there. Take a look into doctrine and jsdoc-parse for example.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.