クラスcom.sun.source.util.TreePath
の使用

TreePathを使用するパッケージ 
パッケージ 説明
com.sun.source.util
抽象構文ツリー(Abstract Syntax Tree、AST)の操作のためのユーティリティを提供します。
  • com.sun.source.utilでのTreePathの使用

    TreePathを返すcom.sun.source.utilのメソッド 
    修飾子と型 メソッド 説明
    TreePath TreePathScanner.getCurrentPath()
    現在アクティブなスキャン呼び出しの集合によって構築されたノードの現在のパスを返します。
    TreePath TreePath.getParentPath()
    囲むノードのパスを返します。囲むノードがない場合はnullを返します。
    static TreePath TreePath.getPath​(CompilationUnitTree unit, Tree target)
    コンパイル単位内のツリー・ノードのツリー・パスを返します。ノードが見つからない場合はnullを返します。
    static TreePath TreePath.getPath​(TreePath path, Tree target)
    TreePathオブジェクトによって識別されるサブツリー内のツリー・ノードのツリー・パスを返します。
    abstract TreePath Trees.getPath​(CompilationUnitTree unit, Tree node)
    指定されたコンパイル単位内のツリー・ノードへのパスを返します。
    abstract TreePath Trees.getPath​(Element e)
    指定されたElementのTreePathノードを返します。
    abstract TreePath Trees.getPath​(Element e, AnnotationMirror a)
    指定されたElementのAnnotationMirrorのTreePathノードを返します。
    abstract TreePath Trees.getPath​(Element e, AnnotationMirror a, AnnotationValue v)
    指定されたElementのAnnotationMirrorのAnnotationValueのTreePathノードを返します。
    TreePath DocTreePath.getTreePath()
    このパスに関連付けられたTreePathを返します。
    TreePath型のパラメータを持つcom.sun.source.utilのメソッド 
    修飾子と型 メソッド 説明
    abstract String Trees.getDocComment​(TreePath path)
    指定されたTreePathによって識別されるTreeノードのdocコメントがあれば、それを返します。
    abstract DocCommentTree DocTrees.getDocCommentTree​(TreePath path)
    指定されたTreePathによって識別されるTreeノードのdocコメント・ツリーがあれば、それを返します。
    abstract Element Trees.getElement​(TreePath path)
    指定されたTreePathによって識別されるTreeノードのElementを返します。
    static DocTreePath DocTreePath.getPath​(TreePath treePath, DocCommentTree doc, DocTree target)
    コンパイル単位内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnullを返します。
    static TreePath TreePath.getPath​(TreePath path, Tree target)
    TreePathオブジェクトによって識別されるサブツリー内のツリー・ノードのツリー・パスを返します。
    abstract Scope Trees.getScope​(TreePath path)
    指定されたTreePathによって識別されるTreeノードのScopeを返します。
    abstract TypeMirror Trees.getTypeMirror​(TreePath path)
    指定されたTreePathによって識別されるTreeノードのTypeMirrorを返します。
    R TreePathScanner.scan​(TreePath path, P p)
    TreePathによって識別される位置からツリーをスキャンします。
    TreePath型のパラメータを持つcom.sun.source.utilのコンストラクタ 
    コンストラクタ 説明
    DocTreePath​(TreePath treePath, DocCommentTree t)
    ルート・ノードのDocTreePathを作成します。
    TreePath​(TreePath path, Tree tree)
    子ノードのTreePathを作成します。