Interface ConstantInstruction

All Superinterfaces:
ClassfileElement, CodeElement, Instruction
All Known Subinterfaces:
ConstantInstruction.ArgumentConstantInstruction, ConstantInstruction.IntrinsicConstantInstruction, ConstantInstruction.LoadConstantInstruction
All Known Implementing Classes:
AbstractInstruction.BoundArgumentConstantInstruction, AbstractInstruction.BoundLoadConstantInstruction, AbstractInstruction.UnboundArgumentConstantInstruction, AbstractInstruction.UnboundIntrinsicConstantInstruction, AbstractInstruction.UnboundLoadConstantInstruction

Models a constant-load instruction in the code array of a Code attribute, including "intrinsic constant" instructions (e.g., iconst_0), "argument constant" instructions (e.g., bipush), and "load constant" instructions (e.g., LDC). Corresponding opcodes will have a kind of Opcode.Kind.CONSTANT. Delivered as a CodeElement when traversing the elements of a CodeModel.