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

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.INVOKESTATIC
              extended by nl.tudelft.simulation.dsol.interpreter.operations.custom.CUSTOMINVOKESTATIC

public class CUSTOMINVOKESTATIC
extends INVOKESTATIC

The CUSTOMINVOKESTATIC 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.INVOKESTATIC
index, OP
 
Fields inherited from class nl.tudelft.simulation.dsol.interpreter.Operation
BREAKPOINT, IMPDEP1, IMPDEP2, OPCODE_BYTE_LENGTH
 
Constructor Summary
CUSTOMINVOKESTATIC(InterpreterOracleInterface interpreterOracle, DataInput dataInput)
          constructs a new CUSTOMINVOKESTATIC
 
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.INVOKESTATIC
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

CUSTOMINVOKESTATIC

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

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: INVOKESTATIC
executes the method on the objectRef

Overrides:
execute in class INVOKESTATIC
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.