nl.tudelft.simulation.dsol.interpreter.operations.reflection
Class INVOKESTATIC

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
Direct Known Subclasses:
CUSTOMINVOKESTATIC, INVOKESTATIC

public class INVOKESTATIC
extends InvokeOperation

INVOKESTATIC
(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.

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

Field Summary
protected  int index
          the index to load
static int OP
          OP refers to the operand code
 
Fields inherited from class nl.tudelft.simulation.dsol.interpreter.Operation
BREAKPOINT, IMPDEP1, IMPDEP2, OPCODE_BYTE_LENGTH
 
Constructor Summary
INVOKESTATIC(DataInput dataInput)
          constructs a new INVOKESTATIC
 
Method Summary
 Frame execute(Frame frame)
          executes the operation
 Frame execute(Frame frame, Object objectRef, Method method, Object[] arguments)
          executes the method on the objectRef
 int getByteLength()
           
 int 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
 

Field Detail

OP

public static final int OP
OP refers to the operand code

See Also:
Constant Field Values

index

protected int index
the index to load

Constructor Detail

INVOKESTATIC

public INVOKESTATIC(DataInput dataInput)
             throws IOException
constructs a new INVOKESTATIC

Parameters:
dataInput - the dataInput
Throws:
IOException - on IOfailure
Method Detail

execute

public Frame execute(Frame frame)
Description copied from class: InvokeOperation
executes the operation

Specified by:
execute in class InvokeOperation
Parameters:
frame - The current frame
Returns:
Frame the newly created frame or null when the invocation already took place
See Also:
#execute(nl.tudelft.simulation.dsol.interpreter.Frame)

execute

public Frame execute(Frame frame,
                     Object objectRef,
                     Method method,
                     Object[] arguments)
              throws Exception
executes the method on the objectRef

Parameters:
frame - the frame
objectRef - the objectRef
method - the method
arguments - the arguments
Returns:
the resulting Frame
Throws:
Exception - on reflection exception

getByteLength

public int getByteLength()
Specified by:
getByteLength in class Operation
Returns:
Returs the byteLength
See Also:
Operation.getByteLength()

getOpcode

public int getOpcode()
Specified by:
getOpcode in class Operation
Returns:
Returns the opcode of the operation
See Also:
Operation.getOpcode()


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