ClassFileElement, CodeElement, ConstantInstruction, InstructionConstantInstructionpublic static sealed interface ConstantInstruction.ArgumentConstantInstruction extends ConstantInstruction
bipush and sipush instructions. An argument constant instruction is composite:
ArgumentConstantInstruction(
Opcode opcode,
int constantValue
)
opcode must be one of bipush or sipush. constantValue must be in the range of byte,
[-128, 127], for bipush, and in the range of short, [-32768, 32767], for sipush. ConstantInstruction.ArgumentConstantInstruction, ConstantInstruction.IntrinsicConstantInstruction, ConstantInstruction.LoadConstantInstruction
| Modifier and Type | Method | Description |
|---|---|---|
Integer |
constantValue() |
Returns the constant value. |
default TypeKind |
typeKind() |
Returns the computational type of the constant. |
opcode, sizeInBytes
Integer constantValue()
ConstantInstructionconstantValue in interface ConstantInstruction
default TypeKind typeKind()
ConstantInstructionconstantValue.typeKind in interface 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://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/classfile/instruction/ConstantInstruction.ArgumentConstantInstruction.html