|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.luaj.vm.LValue
org.luaj.vm.LFunction
public abstract class LFunction
| Field Summary |
|---|
| Fields inherited from class org.luaj.vm.LValue |
|---|
TM_INDEX, TM_METATABLE, TM_MODE, TM_NEWINDEX |
| Constructor Summary | |
|---|---|
LFunction()
|
|
| Method Summary | |
|---|---|
LValue |
__index(LuaState vm,
LValue table,
LValue key)
Process lua tag method __index when it points to a function. |
void |
__newindex(LuaState vm,
LValue table,
LValue key,
LValue val)
Process lua tag method __newindex when it points to a function Default method calls the function using the vm. |
int |
invoke(LuaState lua)
Called to invoke a JavaFunction. |
boolean |
isFunction()
Return true if this is a LFunction |
int |
luaGetType()
Valid for all types: return the int value identifying the type of this value |
boolean |
luaStackCall(LuaState vm)
Set up a Java invocation, and leave the results on the stack starting at base. |
java.lang.String |
toJavaString()
Convert to a Java String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LFunction()
| Method Detail |
|---|
public java.lang.String toJavaString()
LValue
toJavaString in class LValuepublic boolean isFunction()
LValue
isFunction in class LValuepublic int luaGetType()
LValue
luaGetType in class LValuepublic boolean luaStackCall(LuaState vm)
luaStackCall in class LValuepublic int invoke(LuaState lua)
lua - the LuaState calling this function.
public LValue __index(LuaState vm,
LValue table,
LValue key)
vm - table - key -
public void __newindex(LuaState vm,
LValue table,
LValue key,
LValue val)
vm - table - key - val -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||