se.krka.kahlua.stdlib
Class StringLib
java.lang.Object
se.krka.kahlua.stdlib.StringLib
- All Implemented Interfaces:
- JavaFunction
public final class StringLib
- extends java.lang.Object
- implements 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)
|
static void |
register(LuaState state)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STRING_CLASS
public static final java.lang.Class STRING_CLASS
StringLib
public StringLib(int index)
register
public static void register(LuaState state)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
call
public int call(LuaCallFrame callFrame,
int nArguments)
- Description copied from interface:
JavaFunction
- 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)
- Specified by:
call
in interface JavaFunction
- Parameters:
callFrame
- - the current callframe for the functionnArguments
- - number of function arguments
- Returns:
- N - number of return values. The N top objects on the stack are considered the return values