6985202: no access to doc comments from Tree API

Reviewed-by: mcimadamore
This commit is contained in:
Jonathan Gibbons 2010-12-09 08:48:08 -08:00
parent 3244279bb2
commit cc42fec255
3 changed files with 174 additions and 0 deletions

View file

@ -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