インタフェースConstantInstruction.LoadConstantInstruction
- すべてのスーパー・インタフェース:
ClassFileElement
,CodeElement
,ConstantInstruction
,Instruction
- 含まれているインタフェース:
ConstantInstruction
public static sealed interface ConstantInstruction.LoadConstantInstruction extends ConstantInstruction
定数値を定数プールにエンコードする"ロード定数"命令をモデル化します。
ldc
およびldc_w
、およびldc2_w
命令が含まれます。
負荷定数命令はコンポジットです:
LoadConstantInstruction
(LoadableConstantEntry constantEntry
)
"ロード定数"命令は、他の定数ロード命令でサポートされている任意の定数値をロードできます。 ただし、通常、ほかの命令はより最適化されるため、一定のプール・エントリが増えるのを回避し、より小さくなります。
- 導入されたバージョン:
- 24
- 関連項目:
-
ネストされたクラスのサマリー
インタフェースjava.lang.classfile.instruction.ConstantInstructionで宣言されたネストされたクラス/インタフェース
ConstantInstruction.ArgumentConstantInstruction, ConstantInstruction.IntrinsicConstantInstruction, ConstantInstruction.LoadConstantInstruction
-
メソッドのサマリー
インタフェースjava.lang.classfile.instruction.ConstantInstructionで宣言されたメソッド
constantValue
インタフェースjava.lang.classfile.Instructionで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
constantEntry
-
typeKind
default TypeKind typeKind()インタフェース:ConstantInstruction
からコピーされた説明定数の「計算タイプ」を返します。 これは、constantValue
から導出されます。- 定義:
- インタフェース
ConstantInstruction
内のtypeKind
- 戻り値:
- 定数の「計算タイプ」
-