Bug 229081 - Changes to support the updated doctrees API
Changes to support the updated doctrees API
Status: NEW
Product: java
Classification: Unclassified
Component: Source
7.3
PC Linux
: P3 (vote)
: 7.4
Assigned To: apireviews
issues@java
: API, API_REVIEW_FAST
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-26 14:18 UTC by Jan Lahoda
Modified: 2013-04-26 14:44 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2013-04-26 14:18:42 UTC
We would like to use the javac's DocTrees APIs to gain structural access to javadoc, for use by various Java editing, search and transformation features. In order to do so, we need some enhancements in the java.source APIs as well. The overall changes are:
-adding CompilationInfo.getDocTrees similar to getTrees, but returning DocTrees.
-adding DocTreePathHandle - depends on DocTreePath which is not part of the javac APIs at this moment, see this webrev for a patch that introduces it:
http://deadlock.netbeans.org/hudson/job/prototypes-code_analysis/lastSuccessfulBuild/artifact/jdk8_doctrees.patch
-enhancing TreeMaker with ability to create DocTrees, and adding WorkingCopy.rewrite to actually rewrite the DocTrees
-adding a handful of utility methods into TreeUtilities

The full up-to-date patch is available here (please look for changes in java.source/.../api/... to the changes in the APIs):
http://deadlock.netbeans.org/hudson/job/prototypes-code_analysis/lastSuccessfulBuild/artifact/jdk8_doctrees.patch

Thanks for the review.
Comment 1 Ralph Ruijs 2013-04-26 14:44:11 UTC
Other included changes are:
- enhancing RefactoringVisitor with the ability to visit DocTree nodes


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo