Uses of Class com.sun.source.util.DocTreePath (Compiler Tree API )
Date: 2015-11-18

## Uses of Class
com.sun.source.util.DocTreePath

- Packages that use DocTreePath
  Package | Description
  --- | ---
  com.sun.source.util | Provides utilities for operations on abstract syntax trees (AST).

- - ### Uses of DocTreePath in com.sun.source.util

    Methods in com.sun.source.util that return DocTreePath
    Modifier and Type | Method and Description
    --- | ---
    `DocTreePath` | DocTreePathScanner.`getCurrentPath()` Get the current path for the node, as built up by the currently active set of scan calls.
    `DocTreePath` | DocTreePath.`getParentPath()` Get the path for the enclosing node, or null if there is no enclosing node.
    `static DocTreePath` | DocTreePath.`getPath(DocTreePath path, DocTree target)` Gets a documentation tree path for a tree node within a subtree identified by a DocTreePath object.
    `static DocTreePath` | DocTreePath.`getPath(TreePath treePath, DocCommentTree doc, DocTree target)` Gets a documentation tree path for a tree node within a compilation unit.

    Methods in com.sun.source.util with parameters of type DocTreePath
    Modifier and Type | Method and Description
    --- | ---
    `abstract Element` | DocTrees.`getElement(DocTreePath path)` Gets the language model element referred to by the leaf node of the given `DocTreePath`, or null if unknown.
    `static DocTreePath` | DocTreePath.`getPath(DocTreePath path, DocTree target)` Gets a documentation tree path for a tree node within a subtree identified by a DocTreePath object.
    `R` | DocTreePathScanner.`scan(DocTreePath path, P p)` Scan a tree from a position identified by a TreePath.

    Constructors in com.sun.source.util with parameters of type DocTreePath
    Constructor and Description
    `DocTreePath(DocTreePath p, DocTree t)` Creates a DocTreePath for a child node.

Copyright © 2005, 2015, Oracle and/or its affiliates. All rights reserved.