This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229081 - Changes to support the updated doctrees API
Summary: Changes to support the updated doctrees API
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: apireviews
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
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
Exception Reporter:


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