インタフェースReturnInstruction
- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW,CodeElementPREVIEW,InstructionPREVIEW
public sealed interface ReturnInstruction extends InstructionPREVIEW
ReturnInstructionは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
Code属性のcode配列内のメソッドからの戻り命令をモデル化します。 対応するopcodeのkindは、Opcode.Kind.RETURNPREVIEWになります。 CodeModelPREVIEWの要素をトラバースするときに、CodeElementPREVIEWとして提供されます。 - 導入されたバージョン:
- 22
-
メソッドのサマリー
インタフェースjava.lang.classfile.InstructionPREVIEWで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
typeKind
-
of
static ReturnInstructionPREVIEW of(TypeKindPREVIEW typeKind) 戻り命令を返します。- パラメータ:
typeKind- 戻り命令のタイプ- 戻り値:
- 戻り命令
-
of
static ReturnInstructionPREVIEW of(OpcodePREVIEW op) 戻り命令を返します。- パラメータ:
op- 特定のタイプの戻り命令のopcode。Opcode.Kind.RETURNPREVIEW型である必要があります- 戻り値:
- 戻り命令
- 例外:
IllegalArgumentException- opcodeの種類がOpcode.Kind.RETURNPREVIEWでない場合。
-
ReturnInstructionを使用できます。