Module org.glavo.classfile
Package org.glavo.classfile.instruction
Interface ConstantInstruction.LoadConstantInstruction
- All Superinterfaces:
ClassFileElement,CodeElement,ConstantInstruction,Instruction
- All Known Implementing Classes:
AbstractInstruction.BoundLoadConstantInstruction,AbstractInstruction.UnboundLoadConstantInstruction
- Enclosing interface:
ConstantInstruction
public static sealed interface ConstantInstruction.LoadConstantInstruction
extends ConstantInstruction
permits AbstractInstruction.BoundLoadConstantInstruction, AbstractInstruction.UnboundLoadConstantInstruction
Models a "load constant" instruction (e.g.,
ldc).- Since:
- 22
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glavo.classfile.instruction.ConstantInstruction
ConstantInstruction.ArgumentConstantInstruction, ConstantInstruction.IntrinsicConstantInstruction, ConstantInstruction.LoadConstantInstruction -
Method Summary
Methods inherited from interface org.glavo.classfile.instruction.ConstantInstruction
constantValueMethods inherited from interface org.glavo.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
constantEntry
LoadableConstantEntry constantEntry()Returns the constant value.- Returns:
- the constant value
-
typeKind
Returns the type of the constant.- Specified by:
typeKindin interfaceConstantInstruction- Returns:
- the type of the constant
-