8190552: Augment the Compiler API tree with APIs to represent HTML content

Reviewed-by: jjg, jlahoda
This commit is contained in:
Kumar Srinivasan 2017-11-30 04:43:09 -08:00
parent 4da03ba907
commit e3c574e026
43 changed files with 799 additions and 449 deletions

View file

@ -98,13 +98,12 @@ public abstract class DocTrees extends Trees {
/**
* Returns the doc comment tree of the given file. The file must be
* an HTML file, in which case the doc comment tree represents the
* contents of the <body> tag, and any enclosing tags are ignored.
* entire contents of the file.
* Returns {@code null} if no doc comment was found.
* Future releases may support additional file types.
*
* @param fileObject the content container
* @return the doc comment tree
*
* @since 9
*/
public abstract DocCommentTree getDocCommentTree(FileObject fileObject);