Interface ConstantInstruction.IntrinsicConstantInstruction
- All Superinterfaces:
ClassFileElementPREVIEW
,CodeElementPREVIEW
,ConstantInstructionPREVIEW
,InstructionPREVIEW
- Enclosing interface:
ConstantInstructionPREVIEW
public static sealed interface ConstantInstruction.IntrinsicConstantInstruction
extends ConstantInstructionPREVIEW
IntrinsicConstantInstruction
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models an "intrinsic constant" instruction (e.g.,
iconst_0
).- Since:
- 22
-
Nested Class Summary
Nested classes/interfaces declared in interface java.lang.classfile.instruction.ConstantInstructionPREVIEW
ConstantInstruction.ArgumentConstantInstructionPREVIEW, ConstantInstruction.IntrinsicConstantInstructionPREVIEW, ConstantInstruction.LoadConstantInstructionPREVIEW
-
Method Summary
Methods declared in interface java.lang.classfile.instruction.ConstantInstructionPREVIEW
constantValue
Methods declared in interface java.lang.classfile.InstructionPREVIEW
opcode, sizeInBytes
-
Method Details
-
typeKind
Returns the type of the constant.- Specified by:
typeKind
in interfaceConstantInstructionPREVIEW
- Returns:
- the type of the constant
-
IntrinsicConstantInstruction
when preview features are enabled.