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

org.opalj.br.instructions.AStoreInstruction.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 stores the top-most stack value with computational type
 * reference value OR return address in a local variable.
 *
 * @author Michael Eichberg
 */
trait AStoreInstruction extends StoreLocalVariableInstruction {

    def computationalType: ComputationalType = ComputationalTypeReference

    final def stackSlotsChange: Int = -1
}

object AStoreInstruction {

    def unapply(astore: AStoreInstruction): Some[Int] = Some(astore.lvIndex)

}

trait ConstantIndexAStoreInstruction
    extends AStoreInstruction
    with ImplicitLocalVariableIndex
    with InstructionMetaInformation




© 2015 - 2025 Weber Informatics LLC | Privacy Policy