Lua SPOT
v1.0

se.krka.kahlua.vm
Interface JavaFunction

All Known Implementing Classes:
BaseLib, CoroutineLib, LuaSpotLib, MathLib, OsLib, StringLib, SunSpotLib, UserdataArray

public interface JavaFunction


Method Summary
 int call(LuaCallFrame callFrame, int nArguments)
          General contract

Input:
callFrame = the frame that contains all the arguments, and where all the results should be put.
nArgs = number of function arguments
callFrame.get(i) = an argument (0 <= i < nArgs)
 

Method Detail

call

int call(LuaCallFrame callFrame,
         int nArguments)
General contract

Input:
callFrame = the frame that contains all the arguments, and where all the results should be put.
nArgs = number of function arguments
callFrame.get(i) = an argument (0 <= i < nArgs)

Parameters:
callFrame - - the current callframe for the function
nArguments - - number of function arguments
Returns:
N - number of return values. The N top objects on the stack are considered the return values

Lua SPOT
v1.0