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

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

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

/**
 * An instruction that adds two primitive values.
 *
 * @author Michael Eichberg
 */
abstract class ShiftInstruction extends AlwaysSucceedingStackBasedBinaryArithmeticInstruction {

    final def jvmExceptions: List[ObjectType] = Nil

    final def mayThrowExceptions: Boolean = false

    final def isShiftInstruction: Boolean = true

    final def stackSlotsChange: Int = -1

}

object ShiftInstruction {

    def unapply(instruction: ShiftInstruction): Option[ComputationalType] = {
        Some(instruction.computationalType)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy