インタフェースReturnInstruction
- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW
,CodeElementPREVIEW
,InstructionPREVIEW
public sealed interface ReturnInstruction extends InstructionPREVIEW
ReturnInstruction
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
Code
属性のcode
配列内のメソッドからの戻り命令をモデル化します。 対応するopcodeのkind
は、Opcode.Kind.RETURN
PREVIEWになります。 CodeModel
PREVIEWの要素をトラバースするときに、CodeElement
PREVIEWとして提供されます。 - 導入されたバージョン:
- 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.RETURN
PREVIEW型である必要があります- 戻り値:
- 戻り命令
- 例外:
IllegalArgumentException
- opcodeの種類がOpcode.Kind.RETURN
PREVIEWでない場合。
-
ReturnInstruction
を使用できます。