インタフェースInvokeInstruction
- すべてのスーパー・インタフェース:
- ClassFileElementPREVIEW,- CodeElementPREVIEW,- InstructionPREVIEW
public sealed interface InvokeInstruction extends InstructionPREVIEW
InvokeInstructionは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
invokedynamic以外の、 Code属性のcode配列内のメソッド呼出し命令をモデル化します。 対応するopcodeのkindは、Opcode.Kind.INVOKEPREVIEWになります。 CodeModelPREVIEWの要素をトラバースするときに、CodeElementPREVIEWとして提供されます。 - 導入されたバージョン:
- 22
- 
メソッドのサマリー修飾子と型メソッド説明intcount()invokespecial、invokestaticおよびinvokevirtual命令の6.5または0で定義されている、invokeinterface命令のcount値を返します。booleanメソッドを保持しているクラスがインタフェースであるかどうかを返します。method()この命令によって記述されたMethodRefEntryPREVIEWまたはInterfaceMethodRefEntryPREVIEW定数を返します。name()メソッドの名前を返します。static InvokeInstructionPREVIEWof(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface) invocation instructionを返します。static InvokeInstructionPREVIEWof(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface) invocation instructionを返します。static InvokeInstructionPREVIEWof(OpcodePREVIEW op, MemberRefEntryPREVIEW method) invocation instructionを返します。default ClassEntryPREVIEWowner()メソッドを保持するクラスを返します。type()メソッドのメソッド記述子を返します。default MethodTypeDescメソッド・タイプのシンボリック記述子を返します。インタフェースjava.lang.classfile.InstructionPREVIEWで宣言されたメソッドopcode, sizeInBytes
- 
メソッドの詳細- 
methodMemberRefEntryPREVIEW method()この命令によって記述されたMethodRefEntryPREVIEWまたはInterfaceMethodRefEntryPREVIEW定数を返します。- 戻り値:
- この命令で記述されるMethodRefEntryPREVIEWまたはInterfaceMethodRefEntryPREVIEW定数
 
- 
isInterfaceboolean isInterface()メソッドを保持しているクラスがインタフェースであるかどうかを返します。- 戻り値:
- メソッドを保持するクラスがインタフェースかどうか
 
- 
count
- 
owner
- 
name
- 
type
- 
typeSymbol
- 
ofstatic InvokeInstructionPREVIEW of(OpcodePREVIEW op, MemberRefEntryPREVIEW method) invocation instructionを返します。- パラメータ:
- op- 特定のタイプの呼出し命令のopcode。- Opcode.Kind.INVOKEPREVIEW型である必要があります
- method- メソッドを記述する定数プール・エントリ
- 戻り値:
- invocation instruction
- 例外:
- IllegalArgumentException- opcodeの種類が- Opcode.Kind.INVOKEPREVIEWでない場合。
 
- 
ofstatic InvokeInstructionPREVIEW of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface) invocation instructionを返します。- パラメータ:
- op- 特定のタイプの呼出し命令のopcode。- Opcode.Kind.INVOKEPREVIEW型である必要があります
- owner- メソッドを保持するクラス
- name- メソッドの名前
- type- メソッド記述子
- isInterface- メソッドを保持するクラスがインタフェースかどうか
- 戻り値:
- invocation instruction
 
- 
ofstatic InvokeInstructionPREVIEW of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface) invocation instructionを返します。- パラメータ:
- op- 特定のタイプの呼出し命令のopcode。- Opcode.Kind.INVOKEPREVIEW型である必要があります
- owner- メソッドを保持するクラス
- nameAndType- メソッドの名前とタイプ
- isInterface- メソッドを保持するクラスがインタフェースかどうか
- 戻り値:
- invocation instruction
 
 
- 
InvokeInstructionを使用できます。