Uses of Class
com.sun.source.util.TreePath
Package
Description
Provides utilities for operations on abstract syntax trees (AST).
-
Uses of TreePath in com.sun.source.util
Modifier and TypeMethodDescriptionTreePathScanner.getCurrentPath()
Returns the current path for the node, as built up by the currently active set of scan calls.TreePath.getParentPath()
Returns the path for the enclosing node, ornull
if there is no enclosing node.static TreePath
TreePath.getPath
(CompilationUnitTree unit, Tree target) Returns a tree path for a tree node within a compilation unit, ornull
if the node is not found.static TreePath
Returns a tree path for a tree node within a subtree identified by a TreePath object.abstract TreePath
Trees.getPath
(CompilationUnitTree unit, Tree node) Returns the path to tree node within the specified compilation unit.abstract TreePath
Returns theTreePath
node for a givenElement
.abstract TreePath
Trees.getPath
(Element e, AnnotationMirror a) Returns theTreePath
node for anAnnotationMirror
on a givenElement
.abstract TreePath
Trees.getPath
(Element e, AnnotationMirror a, AnnotationValue v) Returns theTreePath
node for anAnnotationValue
for anAnnotationMirror
on a givenElement
.DocTreePath.getTreePath()
Returns theTreePath
associated with this path.Modifier and TypeMethodDescriptionabstract String
Trees.getDocComment
(TreePath path) Returns the doc comment, if any, for theTree
node identified by a givenTreePath
.abstract Elements.DocCommentKind
DocTrees.getDocCommentKind
(TreePath path) Returns the style of the documentation comment associated with a tree node.abstract DocCommentTree
DocTrees.getDocCommentTree
(TreePath path) Returns the doc comment tree, if any, for the Tree node identified by a given TreePath.abstract Element
Trees.getElement
(TreePath path) Returns theElement
for theTree
node identified by a givenTreePath
.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.static TreePath
Returns a tree path for a tree node within a subtree identified by a TreePath object.abstract Scope
Returns theScope
for theTree
node identified by a givenTreePath
.abstract TypeMirror
Trees.getTypeMirror
(TreePath path) Returns theTypeMirror
for theTree
node identified by a givenTreePath
.Scans a tree from a position identified by a TreePath.ModifierConstructorDescriptionDocTreePath
(TreePath treePath, DocCommentTree t) Creates aDocTreePath
for a root node.Creates a TreePath for a child node.