インタフェースConstantInstruction.LoadConstantInstruction

すべてのスーパー・インタフェース:
ClassFileElement, CodeElement, ConstantInstruction, Instruction
含まれているインタフェース:
ConstantInstruction

public static sealed interface ConstantInstruction.LoadConstantInstruction extends ConstantInstruction
定数値を定数プールにエンコードする"ロード定数"命令をモデル化します。 ldcおよびldc_w、およびldc2_w命令が含まれます。

負荷定数命令はコンポジットです:

LoadConstantInstruction(LoadableConstantEntry constantEntry)

"ロード定数"命令は、他の定数ロード命令でサポートされている任意の定数値をロードできます。 ただし、通常、ほかの命令はより最適化されるため、一定のプール・エントリが増えるのを回避し、より小さくなります。

導入されたバージョン:
24
関連項目: