- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW,CodeElementPREVIEW,InstructionPREVIEW
public sealed interface IncrementInstruction extends InstructionPREVIEW
IncrementInstructionは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
Code属性のcode配列のローカル変数増分命令をモデル化します。 対応するopcodeのkindは、Opcode.Kind.INCREMENTPREVIEWになります。 CodeModelPREVIEWの要素をトラバースするときに、CodeElementPREVIEWとして提供されます。 - 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明intconstant()増分する値を返します。static IncrementInstructionPREVIEWof(int slot, int constant) 増分命令を返します。intslot()増分するローカル変数スロットを返します。インタフェースjava.lang.classfile.InstructionPREVIEWで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
slot
int slot()増分するローカル変数スロットを返します。- 戻り値:
- 増分するローカル変数スロット
-
constant
int constant()増分する値を返します。- 戻り値:
- 増分する値
-
of
static IncrementInstructionPREVIEW of(int slot, int constant) 増分命令を返します。- パラメータ:
slot- 増分するローカル変数スロットconstant- 増分する値- 戻り値:
- 増分命令
-
IncrementInstructionを使用できます。