Interface Instruction
- All Superinterfaces:
ClassFileElement
,CodeElement
- All Known Subinterfaces:
ArrayLoadInstruction
,ArrayStoreInstruction
,BranchInstruction
,ConstantInstruction
,ConstantInstruction.ArgumentConstantInstruction
,ConstantInstruction.IntrinsicConstantInstruction
,ConstantInstruction.LoadConstantInstruction
,ConvertInstruction
,DiscontinuedInstruction
,DiscontinuedInstruction.JsrInstruction
,DiscontinuedInstruction.RetInstruction
,FieldInstruction
,IncrementInstruction
,InvokeDynamicInstruction
,InvokeInstruction
,LoadInstruction
,LookupSwitchInstruction
,MonitorInstruction
,NewMultiArrayInstruction
,NewObjectInstruction
,NewPrimitiveArrayInstruction
,NewReferenceArrayInstruction
,NopInstruction
,OperatorInstruction
,ReturnInstruction
,StackInstruction
,StoreInstruction
,TableSwitchInstruction
,ThrowInstruction
,TypeCheckInstruction
public sealed interface Instruction
extends CodeElement
permits ArrayLoadInstruction, ArrayStoreInstruction, BranchInstruction, ConstantInstruction, ConvertInstruction, DiscontinuedInstruction, FieldInstruction, InvokeDynamicInstruction, InvokeInstruction, LoadInstruction, StoreInstruction, IncrementInstruction, LookupSwitchInstruction, MonitorInstruction, NewMultiArrayInstruction, NewObjectInstruction, NewPrimitiveArrayInstruction, NewReferenceArrayInstruction, NopInstruction, OperatorInstruction, ReturnInstruction, StackInstruction, TableSwitchInstruction, ThrowInstruction, TypeCheckInstruction (not exhaustive)
Models an executable instruction in a method body.
- Since:
- 24
-
Method Summary
Modifier and TypeMethodDescriptionopcode()
Returns the opcode of this instruction.int
Returns the size in bytes of this instruction.
-
Method Details
-
opcode
-
sizeInBytes
int sizeInBytes()Returns the size in bytes of this instruction.- Returns:
- the size in bytes of this instruction
-