- 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
- All Known Implementing Classes:
AbstractInstruction,AbstractInstruction.BoundArgumentConstantInstruction,AbstractInstruction.BoundBranchInstruction,AbstractInstruction.BoundFieldInstruction,AbstractInstruction.BoundIncrementInstruction,AbstractInstruction.BoundInstruction,AbstractInstruction.BoundInvokeDynamicInstruction,AbstractInstruction.BoundInvokeInstruction,AbstractInstruction.BoundInvokeInterfaceInstruction,AbstractInstruction.BoundJsrInstruction,AbstractInstruction.BoundLoadConstantInstruction,AbstractInstruction.BoundLoadInstruction,AbstractInstruction.BoundLookupSwitchInstruction,AbstractInstruction.BoundNewMultidimensionalArrayInstruction,AbstractInstruction.BoundNewObjectInstruction,AbstractInstruction.BoundNewPrimitiveArrayInstruction,AbstractInstruction.BoundNewReferenceArrayInstruction,AbstractInstruction.BoundRetInstruction,AbstractInstruction.BoundStoreInstruction,AbstractInstruction.BoundTableSwitchInstruction,AbstractInstruction.BoundTypeCheckInstruction,AbstractInstruction.UnboundArgumentConstantInstruction,AbstractInstruction.UnboundArrayLoadInstruction,AbstractInstruction.UnboundArrayStoreInstruction,AbstractInstruction.UnboundBranchInstruction,AbstractInstruction.UnboundConvertInstruction,AbstractInstruction.UnboundFieldInstruction,AbstractInstruction.UnboundIncrementInstruction,AbstractInstruction.UnboundInstruction,AbstractInstruction.UnboundIntrinsicConstantInstruction,AbstractInstruction.UnboundInvokeDynamicInstruction,AbstractInstruction.UnboundInvokeInstruction,AbstractInstruction.UnboundJsrInstruction,AbstractInstruction.UnboundLoadConstantInstruction,AbstractInstruction.UnboundLoadInstruction,AbstractInstruction.UnboundLookupSwitchInstruction,AbstractInstruction.UnboundMonitorInstruction,AbstractInstruction.UnboundNewMultidimensionalArrayInstruction,AbstractInstruction.UnboundNewObjectInstruction,AbstractInstruction.UnboundNewPrimitiveArrayInstruction,AbstractInstruction.UnboundNewReferenceArrayInstruction,AbstractInstruction.UnboundNopInstruction,AbstractInstruction.UnboundOperatorInstruction,AbstractInstruction.UnboundRetInstruction,AbstractInstruction.UnboundReturnInstruction,AbstractInstruction.UnboundStackInstruction,AbstractInstruction.UnboundStoreInstruction,AbstractInstruction.UnboundTableSwitchInstruction,AbstractInstruction.UnboundThrowInstruction,AbstractInstruction.UnboundTypeCheckInstruction
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, AbstractInstruction
Models an executable instruction in a method body.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionopcode()Returns the opcode of this instruction.intReturns the size in bytes of this instruction.
-
Method Details
-
opcode
Opcode opcode()Returns the opcode of this instruction.- Returns:
- the opcode of this instruction
-
sizeInBytes
int sizeInBytes()Returns the size in bytes of this instruction.- Returns:
- the size in bytes of this instruction
-