All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opalj.br.instructions.SwitchInstruction.scala Maven / Gradle / Ivy

The newest version!
/* BSD 2-Clause License - see OPAL/LICENSE for details. */
package org.opalj
package br
package instructions

/**
 * Extractor for SwitchInstructions.
 *
 * @author Michael Eichberg
 */
object SwitchInstruction {

    /**
     * Extracts the default offset and the jump offsets (RELATIVE - NOT ABSOLUTE!).
     */
    def unapply(i: CompoundConditionalBranchInstruction): Some[(Int, Iterable[Int])] = {
        Some((i.defaultOffset, i.jumpOffsets))
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy