モジュール java.base
インタフェースDiscontinuedInstruction.RetInstruction
- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW,CodeElementPREVIEW,DiscontinuedInstructionPREVIEW,InstructionPREVIEW
- 含まれているインタフェース:
DiscontinuedInstructionPREVIEW
public static sealed interface DiscontinuedInstruction.RetInstruction extends DiscontinuedInstructionPREVIEW
RetInstructionは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
クラス・ファイル・バージョン51.0以降、モデルRETおよびRET_W命令は、
Code属性のcode配列から廃止されました。 対応するopcodeのkindは、Opcode.Kind.DISCONTINUED_RETPREVIEWになります。 CodeModelPREVIEWの要素をトラバースするときに、CodeElementPREVIEWとして提供されます。 - 導入されたバージョン:
- 22
-
ネストされたクラスのサマリー
インタフェースjava.lang.classfile.instruction.DiscontinuedInstructionPREVIEWで宣言されたネストされたクラス/インタフェース
DiscontinuedInstruction.JsrInstructionPREVIEW, DiscontinuedInstruction.RetInstructionPREVIEW -
メソッドのサマリー
インタフェースjava.lang.classfile.InstructionPREVIEWで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
slot
int slot()戻りアドレスを持つローカル変数スロットを返します。- 戻り値:
- 戻りアドレスを持つローカル変数スロット
-
of
static DiscontinuedInstruction.RetInstructionPREVIEW of(OpcodePREVIEW op, int slot) RETまたはRET_W命令を返します。- パラメータ:
op- 特定のタイプのRET命令のopcode。Opcode.Kind.DISCONTINUED_RETPREVIEW型である必要がありますslot- 戻りアドレスをロードするローカル変数スロット- 戻り値:
- RETまたはRET_W命令
-
of
static DiscontinuedInstruction.RetInstructionPREVIEW of(int slot) RET命令を返します。- パラメータ:
slot- 戻りアドレスをロードするローカル変数スロット- 戻り値:
- RET命令
-
RetInstructionを使用できます。