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

インタフェースRequiresTree

すべてのスーパー・インタフェース:
DirectiveTree, Tree

public interface RequiresTree
extends DirectiveTree
モジュール宣言の'requires'ディレクティブのツリー・ノード。 次に例を示します。
    requires module-name;
    requires static module-name;
    requires transitive module-name;
 
導入されたバージョン:
9
  • ネストされたクラスのサマリー

    インタフェース com.sun.source.tree.Treeで宣言されたネストされたクラス/インタフェース

    Tree.Kind
  • メソッドのサマリー

    修飾子と型 メソッド 説明
    ExpressionTree getModuleName()
    必要なモジュールの名前を返します。
    boolean isStatic()
    これが"静的を必要とします"ディレクティブの場合はtrueを返します。
    boolean isTransitive()
    これが"推移性が必要"ディレクティブの場合はtrueを返します。

    インタフェース com.sun.source.tree.Treeで宣言されたメソッド

    accept, getKind
  • メソッドの詳細

    • isStatic

      boolean isStatic()
      これが"静的を必要とします"ディレクティブの場合はtrueを返します。
      戻り値:
      これが"静的を必要とします"ディレクティブの場合はtrue
    • isTransitive

      boolean isTransitive()
      これが"推移性が必要"ディレクティブの場合はtrueを返します。
      戻り値:
      これが"推移性が必要"ディレクティブの場合はtrue
    • getModuleName

      ExpressionTree getModuleName()
      必要なモジュールの名前を返します。
      戻り値:
      必要なモジュールの名前