インタフェースConstantInstruction.ArgumentConstantInstruction
- すべてのスーパー・インタフェース:
ClassFileElement,CodeElement,ConstantInstruction,Instruction
- 含まれているインタフェース:
ConstantInstruction
public static sealed interface ConstantInstruction.ArgumentConstantInstruction extends ConstantInstruction
命令の定数値を直接エンコードする"引数定数"命令をモデル化します。
説明:
bipushおよびsipush命令が含まれます。
引数の定数命令はコンポジットです:
ArgumentConstantInstruction(
Opcode opcode,
int constantValue
)
opcodeは、bipushまたはsipushのいずれかである必要があります。constantValueは、byte、[-128, 127]、bipush、short、[-32768, 32767]、sipushの範囲内である必要があります。
- 導入されたバージョン:
- 24
- 関連項目:
-
ネストされたクラスのサマリー
インタフェースjava.lang.classfile.instruction.ConstantInstructionで宣言されたネストされたクラス/インタフェース
ConstantInstruction.ArgumentConstantInstruction, ConstantInstruction.IntrinsicConstantInstruction, ConstantInstruction.LoadConstantInstruction -
メソッドのサマリー
インタフェースjava.lang.classfile.Instructionで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
constantValue
Integer constantValue()インタフェース:ConstantInstructionからコピーされた説明定数値を返します。- 定義:
- インタフェース
ConstantInstruction内のconstantValue - 戻り値:
- 定数値
-
typeKind
default TypeKind typeKind()インタフェース:ConstantInstructionからコピーされた説明定数の「計算タイプ」を返します。 これは、constantValueから導出されます。- 定義:
- インタフェース
ConstantInstruction内のtypeKind - 戻り値:
- 定数の「計算タイプ」
-