Interface ConstantInstruction.ArgumentConstantInstruction
- All Superinterfaces:
ClassFileElement,CodeElement,ConstantInstruction,Instruction
- Enclosing interface:
ConstantInstruction
public static sealed interface ConstantInstruction.ArgumentConstantInstruction
extends ConstantInstruction
Models an "argument constant" instruction (e.g.,
bipush).- Since:
- 24
-
Nested Class Summary
Nested classes/interfaces declared in interface java.lang.classfile.instruction.ConstantInstruction
ConstantInstruction.ArgumentConstantInstruction, ConstantInstruction.IntrinsicConstantInstruction, ConstantInstruction.LoadConstantInstruction -
Method Summary
Methods declared in interface java.lang.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
constantValue
Integer constantValue()Description copied from interface:ConstantInstructionReturns the constant value.- Specified by:
constantValuein interfaceConstantInstruction- Returns:
- the constant value
-
typeKind
Returns the type of the constant.- Specified by:
typeKindin interfaceConstantInstruction- Returns:
- the type of the constant
-