Интерфейс 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
Краткое описание методов
| Модификатор и тип | Метод | Описание |
|---|---|---|
LoadableConstantEntry |
constantEntry() |
Возвращает значение константы. |
default TypeKind |
typeKind() |
Возвращает тип вычисления константы. |
Методы, объявленные в интерфейсе java.lang.classfile.instruction.ConstantInstruction
constantValue
Методы, объявленные в интерфейсе java.lang.classfile.Instruction
opcode, sizeInBytes
Подробное описание методов
constantEntry
LoadableConstantEntry constantEntry()
- Возвращает:
- значение константы
typeKind
default TypeKind typeKind()
ConstantInstructionconstantValue.- Определено в:
-
typeKindв интерфейсеConstantInstruction - Возвращает:
- тип вычисления константы
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://download.java.net/java/early_access/jdk24/docs/api/java.base/java/lang/classfile/instruction/ConstantInstruction.LoadConstantInstruction.html