Lua SPOT
v1.0

se.krka.kahlua.stdlib
Class StringLib

java.lang.Object
  extended by se.krka.kahlua.stdlib.StringLib
All Implemented Interfaces:
JavaFunction

public final class StringLib
extends java.lang.Object
implements JavaFunction


Nested Class Summary
static class StringLib.MatchState
           
static class StringLib.StringPointer
           
 
Field Summary
static java.lang.Class STRING_CLASS
           
 
Constructor Summary
StringLib(int index)
           
 
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
 

Field Detail

STRING_CLASS

public static final java.lang.Class STRING_CLASS
Constructor Detail

StringLib

public StringLib(int index)
Method Detail

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 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