nl.tudelft.simulation.dsol.interpreter.operations
Class JumpOperation

java.lang.Object
  extended by nl.tudelft.simulation.dsol.interpreter.Operation
      extended by nl.tudelft.simulation.dsol.interpreter.operations.JumpOperation
Direct Known Subclasses:
GOTO, GOTOW, IF_ACMPEQ, IF_ACMPNE, IF_ICMPEQ, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE, IF_ICMPLT, IF_ICMPNE, IFEQ, IFGE, IFGT, IFLE, IFLT, IFNE, IFNONNULL, IFNULL, JSR, JSR_W, LOOKUPSWITCH, RET, TABLESWITCH

public abstract class JumpOperation
extends Operation

The JumpOperation is an abstract class for all operations which return an offset value to jump to a bytecode statement.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.4
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:06 $
Author:
Peter Jacobs Alexander Verbraeck

Field Summary
 
Fields inherited from class nl.tudelft.simulation.dsol.interpreter.Operation
BREAKPOINT, IMPDEP1, IMPDEP2, OPCODE_BYTE_LENGTH
 
Constructor Summary
JumpOperation()
           
 
Method Summary
abstract  int execute(OperandStack stack, Constant[] constantPool, LocalVariable[] localvariables)
          executes the operation
 
Methods inherited from class nl.tudelft.simulation.dsol.interpreter.Operation
getByteLength, getOpcode, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JumpOperation

public JumpOperation()
Method Detail

execute

public abstract int execute(OperandStack stack,
                            Constant[] constantPool,
                            LocalVariable[] localvariables)
executes the operation

Parameters:
stack - the stack to operate on
constantPool - the constantpool
localvariables - the localvariables
Returns:
int the offset in bytes relative to the operand byte of this operation


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.