| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract BreakIterator | Returns: the break iteratorReturns the break iterator used to compute the first sentence of documentation comments. |
| public abstract String | Returns: a string containing the charactersthe tree containing the entity tree)Returns a string containing the characters for the entity in a given entity tree,
or |
| public abstract Elements. | Returns: the style of the documentation comment associated with a tree nodethe path for the tree node path)Returns the style of the documentation comment associated with a tree node. |
| public abstract DocCommentTree | Returns: the doc comment treethe path for the tree node path)Returns the doc comment tree, if any, for the Tree node identified by a given TreePath. |
| public abstract DocCommentTree | Returns: the doc comment treean element whose documentation is required e)Returns the doc comment tree of the given element. |
| public abstract DocCommentTree | Returns: the doc comment treethe content container fileObject)Returns the doc comment tree of the given file, which must be of one of the supported file types. |
| public abstract DocCommentTree | Returns: the doc comment treean element whose path is used as a reference e, String the relative path from the Element relativePath)Returns the doc comment tree of the given file, which must be of one of the supported file types, and whose path is specified relative to the given element. |
| public abstract DocTreeFactory | Returns: a utility object for creatingDocTree objectsReturns a utility object for creating |
| public abstract DocTreePath | Returns: a doc tree path containing the doc comment parsed from the given filea file object encapsulating the HTML content fileObject, PackageElement a package element to associate with the given file object
representing a legacy package.html, null otherwise packageElement)Returns a doc tree path containing the doc comment tree of the given file, which must be of one of the supported file types. |
| public abstract Element | Returns: the referenced element, or nullthe path for the tree node path)Returns the language model element referred to by the leaf node of the given
|
| public abstract List | Returns: the first sentencethe DocTree list to interrogate list)Returns the list of |
| public abstract DocSourcePositions | Returns: the utility objectImplements abstract com. Returns a utility object for accessing the source positions of documentation tree nodes. |
| public abstract TypeMirror | Returns: the referenced type, or nullthe path for the tree node path)Returns the language model type referred to by the leaf node of the given
|
| public static DocTrees | Returns: the DocTrees objectthe compilation task for which to get the Trees object taskHides com. Returns a DocTrees object for a given CompilationTask. |
| public static DocTrees | Returns: the DocTrees objectthe processing environment for which to get the Trees object env)Hides com. Returns a DocTrees object for a given ProcessingEnvironment. |
| public abstract void | printMessage(Diagnostic.
the kind of message kind,the message, or an empty string if none msg, DocTree the tree to use as a position hint t, DocCommentTree the doc comment tree to use as a position hint c, CompilationUnitTree the compilation unit that contains tree root)Prints a message of the specified kind at the location of the tree within the provided compilation unit. |
| public abstract void | setBreakIterator(BreakIterator
a break iterator or breakIterator)null to specify the default
sentence breakerSets the break iterator to compute the first sentence of documentation comments. |
| DocTrees | back to summary |
|---|---|
| public DocTrees() Constructor for subclasses to call. | |
| getBreakIterator | back to summary |
|---|---|
| public abstract BreakIterator getBreakIterator() Returns the break iterator used to compute the first sentence of
documentation comments.
Returns
| |
| getCharacters | back to summary |
|---|---|
| public abstract String getCharacters(EntityTree tree) Returns a string containing the characters for the entity in a given entity tree,
or The interpretation of entities is based on section 8.1.4. Character references in the HTML 5.2 specification.
| |
| getDocCommentKind | back to summary |
|---|---|
| public abstract Elements. Returns the style of the documentation comment associated with a tree node.
| |
| getDocCommentTree | back to summary |
|---|---|
| public abstract DocCommentTree getDocCommentTree(TreePath path) Returns the doc comment tree, if any, for the Tree node identified by a given TreePath.
Returns Implementation Note The default implementation of this method returns the same
| |
| getDocCommentTree | back to summary |
|---|---|
| public abstract DocCommentTree getDocCommentTree(Element e) Returns the doc comment tree of the given element.
Returns Implementation Note The default implementation of this method returns the same
| |
| getDocCommentTree | back to summary |
|---|---|
| public abstract DocCommentTree getDocCommentTree(FileObject fileObject) Returns the doc comment tree of the given file, which must be of one of the supported file types. The supported file types are:
Implementation Note The default implementation of this method returns a
new
| |
| getDocCommentTree | back to summary |
|---|---|
| public abstract DocCommentTree getDocCommentTree(Element e, String relativePath) throws IOException Returns the doc comment tree of the given file, which must be of one of the supported file types, and whose path is specified relative to the given element. The supported file types are:
Implementation Note The default implementation of this method returns a
new
| |
| getDocTreeFactory | back to summary |
|---|---|
| public abstract DocTreeFactory getDocTreeFactory() Returns a utility object for creating
| |
| getDocTreePath | back to summary |
|---|---|
| public abstract DocTreePath getDocTreePath(FileObject fileObject, PackageElement packageElement) Returns a doc tree path containing the doc comment tree of the given file,
which must be of one of the supported file types.
Supported file types are HTML files and Markdown files.
Future releases may support additional file types.
Any references to source code elements contained in
| |
| getElement | back to summary |
|---|---|
| public abstract Element getElement(DocTreePath path) Returns the language model element referred to by the leaf node of the given
| |
| getFirstSentence | back to summary |
|---|---|
| public abstract List Returns the list of | |
| getSourcePositions | back to summary |
|---|---|
| public abstract DocSourcePositions getSourcePositions() Implements abstract com. Returns a utility object for accessing the source positions of documentation tree nodes.
| |
| getType | back to summary |
|---|---|
| public abstract TypeMirror getType(DocTreePath path) Returns the language model type referred to by the leaf node of the given
If
| |
| instance | back to summary |
|---|---|
| public static DocTrees instance(JavaCompiler. Hides com. Returns a DocTrees object for a given CompilationTask.
| |
| instance | back to summary |
|---|---|
| public static DocTrees instance(ProcessingEnvironment env) Hides com. Returns a DocTrees object for a given ProcessingEnvironment.
| |
| printMessage | back to summary |
|---|---|
| public abstract void printMessage(Diagnostic. Prints a message of the specified kind at the location of the tree within the provided compilation unit.
| |
| setBreakIterator | back to summary |
|---|---|
| public abstract void setBreakIterator(BreakIterator breakIterator) Sets the break iterator to compute the first sentence of documentation comments.
| |