View Javadoc

1   /*
2    * @(#) Operation.java Jan 12, 2004
3    * 
4    * Copyright (c) 2003 Delft University of Technology Jaffalaan 5, 2628 BX Delft,
5    * the Netherlands All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the General Public License
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 VoidOperation is an abstract class for all operations which do not return
19   * any value. The VoidOperation only pops and pushes from the stack.
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 VoidOperation 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  	 */
44  	public abstract void execute(final OperandStack stack,
45  			final Constant[] constantPool, final LocalVariable[] localvariables);
46  }