モジュール 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
    • メソッドの詳細

      • isStatic

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

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

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