- すべてのスーパー・インタフェース:
- Tree
public interface ModuleTree extends Tree
モジュール宣言のツリー・ノード。 次に例を示します。 
 
    annotations
    [open] module module-name {
        directives
    }
 - 導入されたバージョン:
- 9
- 
ネストされたクラスのサマリーネストされたクラス 修飾子と型 インタフェース 説明 static classModuleTree.ModuleKindモジュールの種類。
- 
メソッドのサマリー修飾子と型 メソッド 説明 List<? extends AnnotationTree>getAnnotations()このモジュール宣言に関連付けられた注釈を返します。List<? extends DirectiveTree>getDirectives()モジュール宣言内のディレクティブを返します。ModuleTree.ModuleKindgetModuleType()このモジュールの型を返します。ExpressionTreegetName()モジュールの名前を返します。
- 
メソッドの詳細- 
getAnnotationsList<? extends AnnotationTree> getAnnotations()このモジュール宣言に関連付けられた注釈を返します。- 戻り値:
- 注釈
 
- 
getModuleTypeModuleTree.ModuleKind getModuleType()このモジュールの型を返します。- 戻り値:
- このモジュールの型
 
- 
getNameExpressionTree getName()モジュールの名前を返します。- 戻り値:
- モジュールの名前
 
- 
getDirectivesList<? extends DirectiveTree> getDirectives()モジュール宣言内のディレクティブを返します。- 戻り値:
- モジュール宣言のディレクティブ
 
 
-