- すべてのスーパー・インタフェース:
DirectiveTree
,Tree
public interface RequiresTree extends DirectiveTree
モジュール宣言の'requires'ディレクティブのツリー・ノード。 たとえば:
requires module-name; requires static module-name; requires transitive module-name;
- 導入されたバージョン:
- 9
-
ネストされたクラスのサマリー
-
メソッドのサマリー
修飾子と型メソッド説明必要なモジュールの名前を返します。boolean
isStatic()
これが"静的を必要とします"ディレクティブの場合はtrueを返します。boolean
これが"推移性が必要"ディレクティブの場合はtrueを返します。
-
メソッドの詳細
-
isStatic
boolean isStatic()これが"静的を必要とします"ディレクティブの場合はtrueを返します。- 戻り値:
- これが"静的を必要とします"ディレクティブの場合はtrue
-
isTransitive
boolean isTransitive()これが"推移性が必要"ディレクティブの場合はtrueを返します。- 戻り値:
- これが"推移性が必要"ディレクティブの場合はtrue
-
getModuleName
ExpressionTree getModuleName()必要なモジュールの名前を返します。- 戻り値:
- 必要なモジュールの名前
-