インタフェース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
- 戻り値:
- 定数の「計算タイプ」
-