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

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

    TreePathを返すcom.sun.source.utilのメソッド
    修飾子と型
    メソッド
    説明
    TreePathScanner.getCurrentPath()
    現在アクティブなスキャン呼び出しの集合によって構築されたノードの現在のパスを返します。
    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
    指定されたElementのAnnotationMirrorのTreePathノードを返します。
    abstract TreePath
    指定されたElementのAnnotationMirrorのAnnotationValueのTreePathノードを返します。
    DocTreePath.getTreePath()
    このパスに関連付けられたTreePathを返します。
    TreePathのパラメータを持つcom.sun.source.utilのメソッド
    修飾子と型
    メソッド
    説明
    abstract String
    Trees.getDocComment​(TreePath path)
    指定されたTreePathによって識別されるTreeノードのdocコメントがあれば、それを返します。
    DocTrees.getDocCommentTree​(TreePath path)
    指定されたTreePathによって識別されるTreeノードのdocコメント・ツリーがあれば、それを返します。
    abstract Element
    Trees.getElement​(TreePath path)
    指定されたTreePathによって識別されるTreeノードのElementを返します。
    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を返します。
    TreePathScanner.scan​(TreePath path, P p)
    TreePathによって識別される位置からツリーをスキャンします。
    TreePathのパラメータを持つcom.sun.source.utilのコンストラクタ
    修飾子
    コンストラクタ
    説明
     
    ルート・ノードのDocTreePathを作成します。
     
    TreePath​(TreePath path, Tree tree)
    子ノードのTreePathを作成します。