
org.opalj.br.instructions.ImplicitValue.scala Maven / Gradle / Ivy
The newest version!
/* BSD 2-Clause License - see OPAL/LICENSE for details. */
package org.opalj
package br
package instructions
/**
* Trait that can be mixed in if the value of a instruction is implicitly defined.
*
* @author Michael Eichberg
*/
trait ImplicitValue extends ConstantLengthInstruction with InstructionMetaInformation {
final def length: Int = 1
final def isIsomorphic(thisPC: PC, otherPC: PC)(implicit code: Code): Boolean = {
val other = code.instructions(otherPC)
(this eq other) || (other.opcode == this.opcode)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy