インタフェース・インタフェース
- すべてのスーパー・インタフェース:
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 Interfacesof(ClassEntry... interfaces) 「インタフェース」要素を返します。static Interfacesof(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のいずれかがプリミティブである場合
-