nl.tudelft.simulation.dsol.interpreter.operations.custom
Class CUSTOMINVOKEINTERFACE

java.lang.Object
  extended by nl.tudelft.simulation.dsol.interpreter.Operation
      extended by nl.tudelft.simulation.dsol.interpreter.operations.InvokeOperation
          extended by nl.tudelft.simulation.dsol.interpreter.operations.reflection.INVOKEINTERFACE
              extended by nl.tudelft.simulation.dsol.interpreter.operations.custom.CUSTOMINVOKEINTERFACE

public class CUSTOMINVOKEINTERFACE
extends INVOKEINTERFACE

The CUSTOMINVOKEINTERFACE operation as defined in http://java.sun.com/docs/books/vmspec/2nd-edition/html/Instructions2.doc6.html .

(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:12 $
Author:
Peter Jacobs Alexander Verbraeck

Field Summary
 
Fields inherited from class nl.tudelft.simulation.dsol.interpreter.operations.reflection.INVOKEINTERFACE
index, OP
 
Fields inherited from class nl.tudelft.simulation.dsol.interpreter.Operation
BREAKPOINT, IMPDEP1, IMPDEP2, OPCODE_BYTE_LENGTH
 
Constructor Summary
CUSTOMINVOKEINTERFACE(InterpreterOracleInterface interpreterOracle, DataInput dataInput)
          constructs a new CUSTOMINVOKEINTERFACE
 
Method Summary
 Frame execute(Frame frame, Object objectRef, Method method, Object[] arguments)
          executes the method on the objectRef
 
Methods inherited from class nl.tudelft.simulation.dsol.interpreter.operations.reflection.INVOKEINTERFACE
execute, getByteLength, getOpcode
 
Methods inherited from class nl.tudelft.simulation.dsol.interpreter.Operation
toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CUSTOMINVOKEINTERFACE

public CUSTOMINVOKEINTERFACE(InterpreterOracleInterface interpreterOracle,
                             DataInput dataInput)
                      throws IOException
constructs a new CUSTOMINVOKEINTERFACE

Parameters:
the - interpreterOracle to use
dataInput - the dataInput
Throws:
IOException - on IOfailure
Method Detail

execute

public Frame execute(Frame frame,
                     Object objectRef,
                     Method method,
                     Object[] arguments)
              throws Exception
Description copied from class: INVOKEINTERFACE
executes the method on the objectRef

Overrides:
execute in class INVOKEINTERFACE
Parameters:
frame - the frame
objectRef - the objectRef
method - the method
arguments - the arguments
Returns:
the resulting Frame
Throws:
Exception - on reflection exception
See Also:
#execute(nl.tudelft.simulation.dsol.interpreter.Frame, java.lang.Object, java.lang.reflect.Method, java.lang.Object[])


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