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 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. |
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 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. |
public abstract Element | Returns: the elementthe 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.
|
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. The file must be
an HTML file, in which case the doc comment tree represents the
entire contents of the file.
Returns 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 whose path is
specified relative to the given element. 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.
Returns 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.
The file must be an HTML file, in which case the doc comment tree represents
the contents of the
|
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
|
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.
|