インタフェース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
-
メソッドの詳細
-
method
MemberRefEntryPREVIEW method()この命令によって記述されたMethodRefEntryPREVIEWまたはInterfaceMethodRefEntryPREVIEW定数を返します。- 戻り値:
- この命令で記述される
MethodRefEntryPREVIEWまたはInterfaceMethodRefEntryPREVIEW定数
-
isInterface
boolean isInterface()メソッドを保持しているクラスがインタフェースであるかどうかを返します。- 戻り値:
- メソッドを保持するクラスがインタフェースかどうか
-
count
-
owner
-
name
-
type
-
typeSymbol
-
of
static InvokeInstructionPREVIEW of(OpcodePREVIEW op, MemberRefEntryPREVIEW method) invocation instructionを返します。- パラメータ:
op- 特定のタイプの呼出し命令のopcode。Opcode.Kind.INVOKEPREVIEW型である必要がありますmethod- メソッドを記述する定数プール・エントリ- 戻り値:
- invocation instruction
- 例外:
IllegalArgumentException- opcodeの種類がOpcode.Kind.INVOKEPREVIEWでない場合。
-
of
static 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
-
of
static InvokeInstructionPREVIEW of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface) invocation instructionを返します。- パラメータ:
op- 特定のタイプの呼出し命令のopcode。Opcode.Kind.INVOKEPREVIEW型である必要がありますowner- メソッドを保持するクラスnameAndType- メソッドの名前とタイプisInterface- メソッドを保持するクラスがインタフェースかどうか- 戻り値:
- invocation instruction
-
InvokeInstructionを使用できます。