code array of a Code attribute. Corresponding opcodes have a
kind of Opcode.Kind#BRANCH . Delivered as
a CodeElement when traversing the elements of a CodeModel.
A branch instruction is composite:
BranchInstruction( Opcode opcode, Label target )
Due to physical restrictions, some types of instructions cannot encode labels
too far away in the list of code elements. In such cases, the ClassFile. controls how an invalid branch instruction model
is written by a CodeBuilder.
Opcode.Kind#BRANCH , CodeBuilder::branch, ClassFile.ShortJumpsOption
| Modifier and Type | Method and Description |
|---|---|
| public static BranchInstruction | Returns: a branch instructionthe opcode for the specific type of branch instruction,
which must be of kind op, Label Opcode.the target of the branch target)Returns a branch instruction. |
| public Label | Returns: the branch target of this instructionReturns the branch target of this instruction. |
| of | back to summary |
|---|---|
| public static BranchInstruction of(Opcode op, Label target) Returns a branch instruction.
| |
| target | back to summary |
|---|---|
| public Label target() Returns the branch target of this instruction.
| |