package nl.tudelft.simulation.dsol.interpreter.operations; import nl.tudelft.simulation.dsol.interpreter.LocalVariable; import nl.tudelft.simulation.dsol.interpreter.OperandStack; import nl.tudelft.simulation.dsol.interpreter.Operation; import nl.tudelft.simulation.dsol.interpreter.classfile.Constant; /** * The JumpOperation is an abstract class for all operations which return an offset value to jump to a bytecode * statement. *

* (c) copyright 2002-2014 Delft University of Technology.
* BSD-style license. See DSOL License.
* @author Peter Jacobs * @author Alexander Verbraeck */ public abstract class JumpOperation extends Operation { /** * executes the operation. * @param stack the stack to operate on * @param constantPool the constantpool * @param localvariables the localvariables * @return int the offset in bytes relative to the operand byte of this operation */ public abstract int execute(final OperandStack stack, final Constant[] constantPool, final LocalVariable[] localvariables); }