How to access comments from the java compiler tree api generated ast?

前端 未结 5 2227
清歌不尽
清歌不尽 2020-12-30 17:37

I\'ve used the java compiler tree api to generate the ast for java source files. However, i\'m unable to access th comments in the source files.

So far, i\'ve been

5条回答
  •  我在风中等你
    2020-12-30 18:30

    Just for the record. Now with Java 8 you have a whole interface to play with comments and documentation details here.

提交回复
热议问题