Community
Participate
Working Groups
The current API for doc comments has a flat text string. This is not helpful for clients that want to analyze or change the structure of doc comments.
For M7, we have made the following changes to the DOM/AST API: - added Javadoc.tags() to represent structure of the doc comments - deprecated Javadoc.get/setComment - added 5 new node types that occur only within doc comments: TagElement, TextElement, MemberRef, MethodRef, MethodRefParameter - tag elements like MemberRef, MethodRef, and Name can carry binding information (must be requested like elsewhere) - added ASTVisitor(boolean) for controlling whether Javadoc.tags() are visited by default - added ASTMatcher(boolean) for controlling whether Javadoc.tags() are compared vs. only Javadoc.getComment() - AST.parse*(...) now returns structured doc comments (for compatibility, Javadoc.getComment() is also set as before)
Reopen to assign it to me
Test cases need to be completed...
*** Bug 46126 has been marked as a duplicate of this bug. ***
Verified for 3.0M7
*** Bug 25316 has been marked as a duplicate of this bug. ***