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