モジュール 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_RET
PREVIEWになります。 CodeModel
PREVIEWの要素をトラバースするときに、CodeElement
PREVIEWとして提供されます。 - 導入されたバージョン:
- 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_RET
PREVIEW型である必要がありますslot
- 戻りアドレスをロードするローカル変数スロット- 戻り値:
- RETまたはRET_W命令
-
of
static DiscontinuedInstruction.RetInstructionPREVIEW of(int slot) RET命令を返します。- パラメータ:
slot
- 戻りアドレスをロードするローカル変数スロット- 戻り値:
- RET命令
-
RetInstruction
を使用できます。