- All Superinterfaces:
ClassFileElement,CodeElement,Instruction
- All Known Implementing Classes:
AbstractInstruction.BoundBranchInstruction,AbstractInstruction.UnboundBranchInstruction
public sealed interface BranchInstruction
extends Instruction
permits AbstractInstruction.BoundBranchInstruction, AbstractInstruction.UnboundBranchInstruction
Models a branching instruction (conditional or unconditional) in the
code array of a Code attribute. Corresponding opcodes will have a
kind of Opcode.Kind.BRANCH. Delivered as a CodeElement when traversing the elements of a CodeModel.- Since:
- 22
-
Method Summary
Methods inherited from interface org.glavo.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
target
Label target()Returns the target of the branch.- Returns:
- the target of the branch
-
of
Returns a branch instruction.- Parameters:
op- the opcode for the specific type of branch instruction, which must be of kindOpcode.Kind.BRANCHtarget- the target of the branch- Returns:
- a branch instruction
-