Package | Description |
---|---|
com.sun.source.util |
Provides utilities for operations on abstract syntax trees (AST).
|
Modifier and Type | Method and Description |
---|---|
TreePath |
TreePathScanner.getCurrentPath()
Get the current path for the node, as built up by the currently
active set of scan calls.
|
TreePath |
TreePath.getParentPath()
Get the path for the enclosing node, or null if there is no enclosing node.
|
static TreePath |
TreePath.getPath(CompilationUnitTree unit,
Tree target)
Gets a tree path for a tree node within a compilation unit.
|
abstract TreePath |
Trees.getPath(CompilationUnitTree unit,
Tree node)
Gets the path to tree node within the specified compilation unit.
|
abstract TreePath |
Trees.getPath(Element e)
Gets the TreePath node for a given Element.
|
abstract TreePath |
Trees.getPath(Element e,
AnnotationMirror a)
Gets the TreePath node for an AnnotationMirror on a given Element.
|
abstract TreePath |
Trees.getPath(Element e,
AnnotationMirror a,
AnnotationValue v)
Gets the TreePath node for an AnnotationValue for an AnnotationMirror on a given Element.
|
static TreePath |
TreePath.getPath(TreePath path,
Tree target)
Gets a tree path for a tree node within a subtree identified by a TreePath object.
|
TreePath |
DocTreePath.getTreePath()
Get the TreePath associated with this path.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
Trees.getDocComment(TreePath path)
Gets the doc comment, if any, for the Tree node identified by a given TreePath.
|
abstract DocCommentTree |
DocTrees.getDocCommentTree(TreePath path)
Gets the doc comment tree, if any, for the Tree node identified by a given TreePath.
|
abstract Element |
Trees.getElement(TreePath path)
Gets the Element for the Tree node identified by a given TreePath.
|
static DocTreePath |
DocTreePath.getPath(TreePath treePath,
DocCommentTree doc,
DocTree target)
Gets a documentation tree path for a tree node within a compilation unit.
|
static TreePath |
TreePath.getPath(TreePath path,
Tree target)
Gets a tree path for a tree node within a subtree identified by a TreePath object.
|
abstract Scope |
Trees.getScope(TreePath path)
Gets the Scope for the Tree node identified by a given TreePath.
|
abstract TypeMirror |
Trees.getTypeMirror(TreePath path)
Gets the TypeMirror for the Tree node identified by a given TreePath.
|
R |
TreePathScanner.scan(TreePath path,
P p)
Scan a tree from a position identified by a TreePath.
|
Constructor and Description |
---|
DocTreePath(TreePath treePath,
DocCommentTree t)
Creates a DocTreePath for a root node.
|
TreePath(TreePath p,
Tree t)
Creates a TreePath for a child node.
|
Copyright © 2005, 2023, Oracle and/or its affiliates. All rights reserved.