インタフェース・インタフェース
- すべてのスーパー・インタフェース:
ClassElement
,ClassFileElement
public sealed interface Interfaces extends ClassElement
クラスのインタフェース(JVMS 4.1)をモデル化します。
Interfaces
は、ClassModel
に1回のみ表示されます: 出現しない場合、このクラスにはインタフェースがありません。これは、interfaces()
が空のリストを返すInterfaces
と同等です。 ClassBuilder
は、インタフェースが指定されていない場合、インタフェースを空のリストに設定します。 - Java Virtual Machine仕様を参照してください:
-
4.1
ClassFile
構造 - 導入されたバージョン:
- 24
- 関連項目:
-
メソッドのサマリー
修飾子と型メソッド説明このクラスのインタフェースを返します。空の場合もあります。static Interfaces
of
(ClassEntry... interfaces) 「インタフェース」要素を返します。static Interfaces
of
(List<ClassEntry> interfaces) 「インタフェース」要素を返します。static Interfaces
「インタフェース」要素を返します。static Interfaces
「インタフェース」要素を返します。
-
メソッドの詳細
-
interfaces
-
of
static Interfaces of(List<ClassEntry> interfaces) 「インタフェース」要素を返します。- パラメータ:
interfaces
- インタフェース- 戻り値:
- 「インタフェース」要素
-
of
static Interfaces of(ClassEntry... interfaces) 「インタフェース」要素を返します。- パラメータ:
interfaces
- インタフェース- 戻り値:
- 「インタフェース」要素
-
ofSymbols
static Interfaces ofSymbols(List<ClassDesc> interfaces) 「インタフェース」要素を返します。- パラメータ:
interfaces
- インタフェース- 戻り値:
- 「インタフェース」要素
- スロー:
IllegalArgumentException
-interfaces
のいずれかがプリミティブである場合
-
ofSymbols
static Interfaces ofSymbols(ClassDesc... interfaces) 「インタフェース」要素を返します。- パラメータ:
interfaces
- インタフェース- 戻り値:
- 「インタフェース」要素
- スロー:
IllegalArgumentException
-interfaces
のいずれかがプリミティブである場合
-