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

org.opalj.br.instructions.SubtractInstruction.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 subtracts two primitive values.
 *
 * @author Michael Eichberg
 */
abstract class SubtractInstruction extends AlwaysSucceedingStackBasedBinaryArithmeticInstruction {

    final override def isShiftInstruction: Boolean = false

    final override def operator: String = "-"

    final override def jvmExceptions: List[ObjectType] = Nil

    final override def mayThrowExceptions: Boolean = false

    final override def stackSlotsChange: Int = -computationalType.operandSize

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy