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

java.lang.Object
  extended by nl.tudelft.simulation.dsol.interpreter.Operation
      extended by nl.tudelft.simulation.dsol.interpreter.operations.ReturnOperation
Direct Known Subclasses:
ARETURN, DRETURN, FRETURN, IRETURN, LRETURN, RETURN

public abstract class ReturnOperation
extends Operation

The ReturnOperation is an abstract class for all operations which do return any value.

(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:08 $
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
ReturnOperation()
           
 
Method Summary
abstract  Object execute(Frame frame)
          executes the operation
static boolean isStatic(AccessibleObject object)
          is the accessibleObject static?
static boolean isSynchronized(AccessibleObject object)
          is the accessibleObject synchronized?
 
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

ReturnOperation

public ReturnOperation()
Method Detail

execute

public abstract Object execute(Frame frame)
executes the operation

Parameters:
frame - the current frame
Returns:
Object the result

isSynchronized

public static boolean isSynchronized(AccessibleObject object)
is the accessibleObject synchronized?

Parameters:
object - the method or constructor
Returns:
isSynchronized?

isStatic

public static boolean isStatic(AccessibleObject object)
is the accessibleObject static?

Parameters:
object - the method or constructor
Returns:
isStatic?


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