インタフェースIncrementInstruction

すべてのスーパー・インタフェース:
ClassFileElementPREVIEW, CodeElementPREVIEW, InstructionPREVIEW

public sealed interface IncrementInstruction extends InstructionPREVIEW
IncrementInstructionは、JavaプラットフォームのプレビューAPIです。
プレビュー機能が有効な場合のみ、プログラムでIncrementInstructionを使用できます。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
Code属性のcode配列のローカル変数増分命令をモデル化します。 対応するopcodeのkindは、Opcode.Kind.INCREMENTPREVIEWになります。 CodeModelPREVIEWの要素をトラバースするときに、CodeElementPREVIEWとして提供されます。
導入されたバージョン:
22
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    int
    増分する値を返します。
    of(int slot, int constant)
    増分命令を返します。
    int
    増分するローカル変数スロットを返します。

    インタフェースjava.lang.classfile.InstructionPREVIEWで宣言されたメソッド

    opcode, sizeInBytes
  • メソッドの詳細

    • slot

      int slot()
      増分するローカル変数スロットを返します。
      戻り値:
      増分するローカル変数スロット
    • constant

      int constant()
      増分する値を返します。
      戻り値:
      増分する値
    • of

      static IncrementInstructionPREVIEW of(int slot, int constant)
      増分命令を返します。
      パラメータ:
      slot - 増分するローカル変数スロット
      constant - 増分する値
      戻り値:
      増分命令