
org.opalj.br.CodeSequence.scala Maven / Gradle / Ivy
The newest version!
/* BSD 2-Clause License - see OPAL/LICENSE for details. */
package org.opalj
package br
/**
* A sequence of instructions; (currently) the common super trait of
* [[org.opalj.tac.TACStmts]] and [[org.opalj.br.Code]])
*
* @tparam Instruction The type of instructions.
*
* @author Michael Eichberg
*/
trait CodeSequence[Instruction <: AnyRef] {
def pcOfPreviousInstruction(pc: Int): Int /*PC*/
def pcOfNextInstruction(pc: Int): Int /*PC*/
def instructions: Array[Instruction]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy