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 TypeMethodDescriptionvoidconsume()Invokes the associated routine with no parameters.voidconsume(boolean value) Invokes the associated routine with a singlebooleanparameter.voidconsume(byte value) Invokes the associated routine with a singlebyteparameter.voidconsume(char value) Invokes the associated routine with a singlecharparameter.voidconsume(double value) Invokes the associated routine with a singledoubleparameter.voidconsume(float value) Invokes the associated routine with a singlefloatparameter.voidconsume(int value) Invokes the associated routine with a singleintparameter.voidconsume(long value) Invokes the associated routine with a singlelongparameter.voidconsume(short value) Invokes the associated routine with a singleshortparameter.voidInvokes the associated routine with a singleObjectparameter.voiddispose()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 singlebooleanparameter. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein interfaceBooleanConsumer
-
consume
public void consume(byte value) Invokes the associated routine with a singlebyteparameter. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein interfaceByteConsumer
-
consume
public void consume(short value) Invokes the associated routine with a singleshortparameter. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein interfaceShortConsumer
-
consume
public void consume(char value) Invokes the associated routine with a singlecharparameter. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein interfaceCharConsumer
-
consume
public void consume(int value) Invokes the associated routine with a singleintparameter. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein interfaceIntConsumer
-
consume
public void consume(long value) Invokes the associated routine with a singlelongparameter. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein interfaceLongConsumer
-
consume
public void consume(float value) Invokes the associated routine with a singlefloatparameter. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein interfaceFloatConsumer
-
consume
public void consume(double value) Invokes the associated routine with a singledoubleparameter. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein interfaceDoubleConsumer
-
consume
Invokes the associated routine with a singleObjectparameter. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein interfaceObjectConsumer
-
consume
public void consume()Invokes the associated routine with no parameters. The routine has to return an instance ofAbruptCompletion.Returnwith avoidtype.- Specified by:
consumein 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
-