public abstract class AbstractFunction5 extends LuaFunction
Constructor and Description |
---|
AbstractFunction5() |
Modifier and Type | Method and Description |
---|---|
void |
invoke(ExecutionContext context)
Invokes this function in the given execution context
context without arguments. |
void |
invoke(ExecutionContext context,
Object arg1)
Invokes this function in the given execution context
context with a single
argument arg1 . |
void |
invoke(ExecutionContext context,
Object[] args)
Invokes this function in the given execution context
context with the call
arguments stored in the array args . |
void |
invoke(ExecutionContext context,
Object arg1,
Object arg2)
Invokes this function in the given execution context
context with two arguments,
arg1 and arg2 . |
void |
invoke(ExecutionContext context,
Object arg1,
Object arg2,
Object arg3)
Invokes this function in the given execution context
context with three arguments,
arg1 , arg2 and arg3 . |
void |
invoke(ExecutionContext context,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Invokes this function in the given execution context
context with four arguments,
arg1 , arg2 , arg3 and arg4 . |
invoke
public void invoke(ExecutionContext context) throws ResolvedControlThrowable
LuaFunction
context
without arguments.
The result of the invocation will be stored in the return buffer of the execution context.
This method throws a ResolvedControlThrowable
:
this method is expected to have resolved non-local control changes up to the point
of its invocation.
This method is not meant to be invoked directly by client code, since
the invocation does not handle possible tail call returns and resolves non-local
control changes.
Unless it is known that this method does not perform a tail call,
use Dispatch.call(ExecutionContext, Object)
instead.
The behaviour of this method is undefined when context
is null
.
invoke
in class LuaFunction
context
- execution context, must not be null
ResolvedControlThrowable
- if the call initiates a non-local control changepublic void invoke(ExecutionContext context, Object arg1) throws ResolvedControlThrowable
LuaFunction
context
with a single
argument arg1
.
The result of the invocation will be stored in the return buffer of the execution context.
This method throws a ResolvedControlThrowable
:
this method is expected to have resolved non-local control changes up to the point
of its invocation.
This method is not meant to be invoked directly by client code, since
the invocation does not handle possible tail call returns and resolves non-local
control changes.
Unless it is known that this method does not perform a tail call,
use Dispatch.call(ExecutionContext, Object, Object)
instead.
The behaviour of this method is undefined when context
is null
.
invoke
in class LuaFunction
context
- execution context, must not be null
arg1
- call argument, may be null
ResolvedControlThrowable
- if the call initiates a non-local control changepublic void invoke(ExecutionContext context, Object arg1, Object arg2) throws ResolvedControlThrowable
LuaFunction
context
with two arguments,
arg1
and arg2
.
The result of the invocation will be stored in the return buffer of the execution context.
This method throws a ResolvedControlThrowable
:
this method is expected to have resolved non-local control changes up to the point
of its invocation.
This method is not meant to be invoked directly by client code, since
the invocation does not handle possible tail call returns and resolves non-local
control changes.
Unless it is known that this method does not perform a tail call,
use Dispatch.call(ExecutionContext, Object, Object, Object)
instead.
The behaviour of this method is undefined when context
is null
.
invoke
in class LuaFunction
context
- execution context, must not be null
arg1
- the first argument, may be null
arg2
- the second argument, may be null
ResolvedControlThrowable
- if the call initiates a non-local control changepublic void invoke(ExecutionContext context, Object arg1, Object arg2, Object arg3) throws ResolvedControlThrowable
LuaFunction
context
with three arguments,
arg1
, arg2
and arg3
.
The result of the invocation will be stored in the return buffer of the execution context.
This method throws a ResolvedControlThrowable
:
this method is expected to have resolved non-local control changes up to the point
of its invocation.
This method is not meant to be invoked directly by client code, since
the invocation does not handle possible tail call returns and resolves non-local
control changes.
Unless it is known that this method does not perform a tail call,
use Dispatch.call(ExecutionContext, Object, Object, Object, Object)
instead.
The behaviour of this method is undefined when context
is null
.
invoke
in class LuaFunction
context
- execution context, must not be null
arg1
- the first argument, may be null
arg2
- the second argument, may be null
arg3
- the third argument, may be null
ResolvedControlThrowable
- if the call initiates a non-local control changepublic void invoke(ExecutionContext context, Object arg1, Object arg2, Object arg3, Object arg4) throws ResolvedControlThrowable
LuaFunction
context
with four arguments,
arg1
, arg2
, arg3
and arg4
.
The result of the invocation will be stored in the return buffer of the execution context.
This method throws a ResolvedControlThrowable
:
this method is expected to have resolved non-local control changes up to the point
of its invocation.
This method is not meant to be invoked directly by client code, since
the invocation does not handle possible tail call returns and resolves non-local
control changes.
Unless it is known that this method does not perform a tail call,
use Dispatch.call(ExecutionContext, Object, Object, Object, Object, Object)
instead.
The behaviour of this method is undefined when context
is null
.
invoke
in class LuaFunction
context
- execution context, must not be null
arg1
- the first argument, may be null
arg2
- the second argument, may be null
arg3
- the third argument, may be null
arg4
- the fourth argument, may be null
ResolvedControlThrowable
- if the call initiates a non-local control changepublic void invoke(ExecutionContext context, Object[] args) throws ResolvedControlThrowable
LuaFunction
context
with the call
arguments stored in the array args
.
The result of the invocation will be stored in the return buffer of the execution context.
This method throws a ResolvedControlThrowable
: the implementation of
this method is expected to handle non-local control changes up to the invocation point.
This method is not meant to be invoked directly by client code, since
the invocation does not handle possible tail call returns and resolves non-local
control changes.
Unless it is known that this method does not perform a tail call,
use Dispatch.call(ExecutionContext, Object, Object[])
instead.
The contents of the array args
must not be modified by this method,
and the reference to args
must not be retained by the invokable or any other
objects the invokable interacts with beyond the scope of this method's invocation.
In particular, the array reference must not be part of the suspended state created
on a non-local control change.
The behaviour of this method is undefined when context
or args
is null
.
invoke
in class LuaFunction
context
- execution context, must not be null
args
- call arguments, must not be null
ResolvedControlThrowable
- if the call initiates a non-local control changeCopyright © 2016. All rights reserved.