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 the TreePath node for a given Element.abstract TreePath
Trees.getPath
(Element e, AnnotationMirror a) Returns the TreePath node for an AnnotationMirror on a given Element.abstract TreePath
Trees.getPath
(Element e, AnnotationMirror a, AnnotationValue v) Returns the TreePath node for an AnnotationValue for an AnnotationMirror on a given Element.DocTreePath.getTreePath()
Returns theTreePath
associated with this path.Modifier and TypeMethodDescriptionabstract String
Trees.getDocComment
(TreePath path) Returns the doc comment, if any, for the Tree node identified by a given TreePath.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 the Element for the Tree node identified by a given TreePath.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 the Scope for the Tree node identified by a given TreePath.abstract TypeMirror
Trees.getTypeMirror
(TreePath path) Returns the TypeMirror for the Tree node identified by a given TreePath.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.