Интерфейс RequiresTree
- Все суперинтерфейсы:
DirectiveTree, Tree
public interface RequiresTree extends DirectiveTree
Узел дерева для директивы 'requires' в объявлении модуля. Например:
requires module-name; requires static module-name; requires transitive module-name;
- Начиная с:
- 9
Краткое описание вложенных классов
Краткое описание методов
| Модификатор и тип | Метод | Описание |
|---|---|---|
ExpressionTree |
getModuleName() |
Возвращает имя требуемого модуля. |
boolean |
isStatic() |
Возвращает true, если это директива "requires static". |
boolean |
isTransitive() |
Возвращает true, если это директива "requires transitive". |
Подробное описание методов
isStatic
boolean isStatic()
Возвращает true, если это директива "requires static".
- Возвращает:
- true, если это директива "requires static"
isTransitive
boolean isTransitive()
Возвращает true, если это директива "requires transitive".
- Возвращает:
- true, если это директива "requires transitive"
getModuleName
ExpressionTree getModuleName()
Возвращает имя требуемого модуля.
- Возвращает:
- имя требуемого модуля
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/jdk.compiler/com/sun/source/tree/RequiresTree.html