public abstract class AbstractFunctionAnyArg extends LuaFunction
Constructor and Description |
---|
AbstractFunctionAnyArg() |
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 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 . |
void |
invoke(ExecutionContext context,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5)
Invokes this function in the given execution context
context with five arguments,
arg1 , arg2 , arg3 , arg4 and arg5 . |
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 arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws ResolvedControlThrowable
LuaFunction
context
with five arguments,
arg1
, arg2
, arg3
, arg4
and arg5
.
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, 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
arg5
- the fifth argument, may be null
ResolvedControlThrowable
- if the call initiates a non-local control changeCopyright © 2016. All rights reserved.