- すべてのスーパー・インタフェース:
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()モジュールの名前を返します。
-
メソッドの詳細
-
getAnnotations
List<? extends AnnotationTree> getAnnotations()このモジュール宣言に関連付けられた注釈を返します。- 戻り値:
- 注釈
-
getModuleType
ModuleTree.ModuleKind getModuleType()このモジュールの型を返します。- 戻り値:
- このモジュールの型
-
getName
ExpressionTree getName()モジュールの名前を返します。- 戻り値:
- モジュールの名前
-
getDirectives
List<? extends DirectiveTree> getDirectives()モジュール宣言内のディレクティブを返します。- 戻り値:
- モジュール宣言のディレクティブ
-