|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.dsol.interpreter.Operation
nl.tudelft.simulation.dsol.interpreter.operations.InvokeOperation
nl.tudelft.simulation.dsol.interpreter.operations.reflection.INVOKEINTERFACE
public class INVOKEINTERFACE
INVOKEINTERFACE
(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.
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 | |
---|---|
INVOKEINTERFACE(DataInput dataInput)
constructs a new INVOKEINTERFACE |
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 |
---|
public static final int OP
protected int index
Constructor Detail |
---|
public INVOKEINTERFACE(DataInput dataInput) throws IOException
dataInput
- the dataInput
IOException
- on IOfailureMethod Detail |
---|
public Frame execute(Frame frame)
InvokeOperation
execute
in class InvokeOperation
frame
- The current frame
#execute(nl.tudelft.simulation.dsol.interpreter.Frame)
public Frame execute(Frame frame, Object objectRef, Method method, Object[] arguments) throws Exception
frame
- the frameobjectRef
- the objectRefmethod
- the methodarguments
- the arguments
Exception
- on reflection exceptionpublic int getByteLength()
getByteLength
in class Operation
Operation.getByteLength()
public int getOpcode()
getOpcode
in class Operation
Operation.getOpcode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |