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