Module org.glavo.classfile
Package org.glavo.classfile.instruction
Interface ConstantInstruction.ArgumentConstantInstruction
- All Superinterfaces:
ClassfileElement,CodeElement,ConstantInstruction,Instruction
- All Known Implementing Classes:
AbstractInstruction.BoundArgumentConstantInstruction,AbstractInstruction.UnboundArgumentConstantInstruction
- Enclosing interface:
ConstantInstruction
public static sealed interface ConstantInstruction.ArgumentConstantInstruction
extends ConstantInstruction
permits AbstractInstruction.BoundArgumentConstantInstruction, AbstractInstruction.UnboundArgumentConstantInstruction
Models an "argument constant" instruction (e.g.,
bipush).-
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
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
-