1
2
3
4
5
6
7
8
9
10 package nl.tudelft.simulation.dsol.interpreter.operations;
11
12 import nl.tudelft.simulation.dsol.interpreter.LocalVariable;
13 import nl.tudelft.simulation.dsol.interpreter.OperandStack;
14 import nl.tudelft.simulation.dsol.interpreter.Operation;
15 import nl.tudelft.simulation.dsol.interpreter.classfile.Constant;
16
17 /***
18 * The JumpOperation is an abstract class for all operations which return an
19 * offset value to jump to a bytecode statement.
20 * <p>
21 * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
22 * University of Technology </a>, the Netherlands. <br>
23 * See for project information <a
24 * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
25 * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
26 * License (GPL) </a>, no warranty <br>
27 *
28 * @author <a href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm">Peter
29 * Jacobs </a><a
30 * href="http://www.tbm.tudelft.nl/webstaf/alexandv/index.htm">Alexander
31 * Verbraeck </a>
32 * @version 1.3 Apr 6, 2004
33 * @since 1.4
34 */
35 public abstract class JumpOperation extends Operation
36 {
37 /***
38 * executes the operation
39 *
40 * @param stack the stack to operate on
41 * @param constantPool the constantpool
42 * @param localvariables the localvariables
43 * @return int the offset in bytes relative to the operand byte of this
44 * operation
45 */
46 public abstract int execute(final OperandStack stack,
47 final Constant[] constantPool, final LocalVariable[] localvariables);
48 }