Interface ConstantInstruction.ArgumentConstantInstruction
- All Superinterfaces:
ClassFileElementPREVIEW,CodeElementPREVIEW,ConstantInstructionPREVIEW,InstructionPREVIEW
- Enclosing interface:
ConstantInstructionPREVIEW
public static sealed interface ConstantInstruction.ArgumentConstantInstruction
extends ConstantInstructionPREVIEW
ArgumentConstantInstruction 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 "argument constant" instruction (e.g.,
bipush).- Since:
- 22
-
Nested Class Summary
Nested classes/interfaces declared in interface java.lang.classfile.instruction.ConstantInstructionPREVIEW
ConstantInstruction.ArgumentConstantInstructionPREVIEW, ConstantInstruction.IntrinsicConstantInstructionPREVIEW, ConstantInstruction.LoadConstantInstructionPREVIEW -
Method Summary
Modifier and TypeMethodDescriptionReturns the constant value.typeKind()Returns the type of the constant.Methods declared in interface java.lang.classfile.InstructionPREVIEW
opcode, sizeInBytes
-
Method Details
-
constantValue
Integer constantValue()Description copied from interface:ConstantInstructionReturns the constant value.- Specified by:
constantValuein interfaceConstantInstructionPREVIEW- Returns:
- the constant value
-
typeKind
Returns the type of the constant.- Specified by:
typeKindin interfaceConstantInstructionPREVIEW- Returns:
- the type of the constant
-
ArgumentConstantInstructionwhen preview features are enabled.