mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6985202: no access to doc comments from Tree API
Reviewed-by: mcimadamore
This commit is contained in:
parent
3244279bb2
commit
cc42fec255
3 changed files with 174 additions and 0 deletions
|
@ -162,6 +162,12 @@ public abstract class Trees {
|
|||
*/
|
||||
public abstract Scope getScope(TreePath path);
|
||||
|
||||
/**
|
||||
* Gets the doc comment, if any, for the Tree node identified by a given TreePath.
|
||||
* Returns null if no doc comment was found.
|
||||
*/
|
||||
public abstract String getDocComment(TreePath path);
|
||||
|
||||
/**
|
||||
* Checks whether a given type is accessible in a given scope.
|
||||
* @param scope the scope to be checked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue