Uses of Class
com.sun.source.util.TreePath
Packages that use TreePath
Package
Description
Provides utilities for operations on abstract syntax trees (AST).
-
Uses of TreePath in com.sun.source.util
Methods in com.sun.source.util that return TreePathModifier 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, ornullif there is no enclosing node.static TreePathTreePath.getPath(CompilationUnitTree unit, Tree target) Returns a tree path for a tree node within a compilation unit, ornullif the node is not found.static TreePathReturns a tree path for a tree node within a subtree identified by a TreePath object.abstract TreePathTrees.getPath(CompilationUnitTree unit, Tree node) Returns the path to tree node within the specified compilation unit.abstract TreePathReturns theTreePathnode for a givenElement.abstract TreePathTrees.getPath(Element e, AnnotationMirror a) Returns theTreePathnode for anAnnotationMirroron a givenElement.abstract TreePathTrees.getPath(Element e, AnnotationMirror a, AnnotationValue v) Returns theTreePathnode for anAnnotationValuefor anAnnotationMirroron a givenElement.DocTreePath.getTreePath()Returns theTreePathassociated with this path.Methods in com.sun.source.util with parameters of type TreePathModifier and TypeMethodDescriptionabstract StringTrees.getDocComment(TreePath path) Returns the doc comment, if any, for theTreenode identified by a givenTreePath.abstract Elements.DocCommentKindDocTrees.getDocCommentKind(TreePath path) Returns the style of the documentation comment associated with a tree node.abstract DocCommentTreeDocTrees.getDocCommentTree(TreePath path) Returns the doc comment tree, if any, for the Tree node identified by a given TreePath.abstract ElementTrees.getElement(TreePath path) Returns theElementfor theTreenode identified by a givenTreePath.static DocTreePathDocTreePath.getPath(TreePath treePath, DocCommentTree doc, DocTree target) Returns a documentation tree path for a tree node within a compilation unit, ornullif the node is not found.static TreePathReturns a tree path for a tree node within a subtree identified by a TreePath object.abstract ScopeReturns theScopefor theTreenode identified by a givenTreePath.abstract TypeMirrorTrees.getTypeMirror(TreePath path) Returns theTypeMirrorfor theTreenode identified by a givenTreePath.Scans a tree from a position identified by a TreePath.Constructors in com.sun.source.util with parameters of type TreePathModifierConstructorDescriptionDocTreePath(TreePath treePath, DocCommentTree t) Creates aDocTreePathfor a root node.Creates a TreePath for a child node.