モジュール jdk.compiler
パッケージ com.sun.source.tree

インタフェースModuleTree

  • すべてのスーパー・インタフェース:
    ツリー


    public interface ModuleTree
    extends Tree
    モジュール宣言のツリー・ノード。 次に例を示します。
        annotations
        [open] module module-name {
            directives
        }
     
    導入されたバージョン:
    9
    • メソッドの詳細

      • getAnnotations

        List<? extends AnnotationTree> getAnnotations​()
        このモジュール宣言に関連付けられた注釈を返します。
        戻り値:
        注釈
      • getModuleType

        ModuleTree.ModuleKind getModuleType​()
        このモジュールの型を返します。
        戻り値:
        このモジュールの型
      • getName

        ExpressionTree getName​()
        モジュールの名前を返します。
        戻り値:
        モジュールの名前
      • getDirectives

        List<? extends DirectiveTree> getDirectives​()
        モジュール宣言内のディレクティブを返します。
        戻り値:
        モジュール宣言のディレクティブ