java.lang.Object
de.grogra.xl.vmx.RoutineDescriptor
- All Implemented Interfaces:
BooleanConsumer
,ByteConsumer
,CharConsumer
,DoubleConsumer
,FloatConsumer
,IntConsumer
,LongConsumer
,ObjectConsumer
,ShortConsumer
,VoidConsumer
public final class RoutineDescriptor
extends Object
implements BooleanConsumer, ByteConsumer, ShortConsumer, CharConsumer, IntConsumer, LongConsumer, FloatConsumer, DoubleConsumer, ObjectConsumer, VoidConsumer
A descriptor for a later invocation of a routine in a given frame context.
Instances of
RoutineDescriptor
are obtained by
VMXState.createDescriptor(Routine, int, Authorization)
.- Author:
- Ole Kniemeyer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
consume()
Invokes the associated routine with no parameters.void
consume
(boolean value) Invokes the associated routine with a singleboolean
parameter.void
consume
(byte value) Invokes the associated routine with a singlebyte
parameter.void
consume
(char value) Invokes the associated routine with a singlechar
parameter.void
consume
(double value) Invokes the associated routine with a singledouble
parameter.void
consume
(float value) Invokes the associated routine with a singlefloat
parameter.void
consume
(int value) Invokes the associated routine with a singleint
parameter.void
consume
(long value) Invokes the associated routine with a singlelong
parameter.void
consume
(short value) Invokes the associated routine with a singleshort
parameter.void
Invokes the associated routine with a singleObject
parameter.void
dispose()
This method can be used to recycle this instance.invoke()
Invokes the associated routine.
-
Method Details
-
dispose
public void dispose()This method can be used to recycle this instance. If this descriptor is not needed any more, this method can be invoked in order to inform the VMXState that it may re-use this instance. -
consume
public void consume(boolean value) Invokes the associated routine with a singleboolean
parameter. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceBooleanConsumer
-
consume
public void consume(byte value) Invokes the associated routine with a singlebyte
parameter. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceByteConsumer
-
consume
public void consume(short value) Invokes the associated routine with a singleshort
parameter. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceShortConsumer
-
consume
public void consume(char value) Invokes the associated routine with a singlechar
parameter. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceCharConsumer
-
consume
public void consume(int value) Invokes the associated routine with a singleint
parameter. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceIntConsumer
-
consume
public void consume(long value) Invokes the associated routine with a singlelong
parameter. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceLongConsumer
-
consume
public void consume(float value) Invokes the associated routine with a singlefloat
parameter. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceFloatConsumer
-
consume
public void consume(double value) Invokes the associated routine with a singledouble
parameter. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceDoubleConsumer
-
consume
Invokes the associated routine with a singleObject
parameter. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceObjectConsumer
-
consume
public void consume()Invokes the associated routine with no parameters. The routine has to return an instance ofAbruptCompletion.Return
with avoid
type.- Specified by:
consume
in interfaceVoidConsumer
-
invoke
Invokes the associated routine. Parameters have to be pushed on the stack in advance, the will be popped by the invocation.- Returns:
- the return value of the routine
-