Uses of Class
com.sun.source.util.DocTreePath
Packages that use DocTreePath
包
描述
Provides utilities for operations on abstract syntax trees (AST).
The Doclet API provides an environment which, in conjunction with
the Language Model API and Compiler Tree API, allows clients
to inspect the source-level structures of programs and
libraries, including API comments embedded in the source.
-
Uses of DocTreePath in com.sun.source.util
Methods in com.sun.source.util that return DocTreePath修饰符和类方法描述DocTreePathScanner.getCurrentPath()
Returns the current path for the node, as built up by the currently active set of scan calls.abstract DocTreePath
DocTrees.getDocTreePath
(FileObject fileObject, PackageElement packageElement) Returns a doc tree path containing the doc comment tree of the given file.DocTreePath.getParentPath()
Returns the path for the enclosing node, ornull
if there is no enclosing node.static DocTreePath
DocTreePath.getPath
(DocTreePath path, DocTree target) Returns a documentation tree path for a tree node within a subtree identified by aDocTreePath
object, ornull
if the node is not found.static DocTreePath
DocTreePath.getPath
(TreePath treePath, DocCommentTree doc, DocTree target) Returns a documentation tree path for a tree node within a compilation unit, ornull
if the node is not found.Methods in com.sun.source.util with parameters of type DocTreePath修饰符和类方法描述abstract Element
DocTrees.getElement
(DocTreePath path) Returns the language model element referred to by the leaf node of the givenDocTreePath
, ornull
if unknown.static DocTreePath
DocTreePath.getPath
(DocTreePath path, DocTree target) Returns a documentation tree path for a tree node within a subtree identified by aDocTreePath
object, ornull
if the node is not found.abstract TypeMirror
DocTrees.getType
(DocTreePath path) Returns the language model type referred to by the leaf node of the givenDocTreePath
, ornull
if unknown.DocTreePathScanner.scan
(DocTreePath path, P p) Scans a tree from a position identified by a tree path.Constructors in com.sun.source.util with parameters of type DocTreePathModifierConstructor描述DocTreePath
(DocTreePath p, DocTree t) Creates aDocTreePath
for a child node. -
Uses of DocTreePath in jdk.javadoc.doclet
Methods in jdk.javadoc.doclet with parameters of type DocTreePath修饰符和类方法描述default void
Reporter.print
(Diagnostic.Kind kind, DocTreePath path, int start, int pos, int end, String message) Prints a diagnostic message related to a position within a range of characters in a tree node.void
Reporter.print
(Diagnostic.Kind kind, DocTreePath path, String message) Prints a diagnostic message related to a tree node in a documentation comment.