jumpIf

fun jumpIf(    method: MethodVisitor,     branchOpcode: Int,     edge: L2PcOperand)

Emit code to jump to the target of the supplied edge conditionally, based on the supplied JVM branch opcode and the value on top of the stack. program counter. If condition is not satisfied, control continues at the next JVM instruction.

Parameters

method

The method into which the generated JVM instructions will be written.

branchOpcode

The JVM opcode for the branch instruction, as an Int.

edge

The L2PcOperand that indicates where to jump to.