インタフェースReturnInstruction
- すべてのスーパー・インタフェース:
ClassFileElement,CodeElement,Instruction
public sealed interface ReturnInstruction extends Instruction
Code属性のcode配列内のメソッドからの戻り命令をモデル化します。 対応するopcodesのkindはOpcode.Kind.RETURNです。 CodeModelの要素をトラバースするときに、CodeElementとして提供されます。
return-from-method命令はcompositeです:
ReturnInstruction(TypeKind typeKind)
typeKindは、computationalまたはvoidです。- 導入されたバージョン:
- 24
- 関連項目:
-
メソッドのサマリー
インタフェースjava.lang.classfile.Instructionで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
typeKind
-
of
static ReturnInstruction of(TypeKind typeKind) 戻り命令を返します。typeKindは、その計算型に対するconvertedです。- パラメータ:
typeKind- 戻り命令のタイプ- 戻り値:
- 戻り命令
-
of
static ReturnInstruction of(Opcode op) 戻り命令を返します。- パラメータ:
op- 特定のタイプの戻り命令のopcode。Opcode.Kind.RETURNの種類である必要があります- 戻り値:
- 戻り命令
- スロー:
IllegalArgumentException- opcodeの種類がOpcode.Kind.RETURNでない場合。
-