|
||||||||||
| 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
org.luaj.vm.LClosure
public class LClosure
| Field Summary | |
|---|---|
LTable |
env
|
LPrototype |
p
|
UpVal[] |
upVals
|
| Fields inherited from class org.luaj.vm.LValue |
|---|
TM_INDEX, TM_METATABLE, TM_MODE, TM_NEWINDEX |
| Constructor Summary | |
|---|---|
protected |
LClosure(LPrototype p,
LTable env)
Construct using a prototype and initial environment. |
| Method Summary | |
|---|---|
boolean |
isClosure()
Returns true if this is a lua closure, false otherwise |
LTable |
luaGetEnv(LTable d)
Get the enviroment for this closure |
boolean |
luaSetEnv(LTable t)
Set the environment if a thread, or closure, and return 1, otherwise return 0 |
boolean |
luaStackCall(LuaState vm)
Set up a Java invocation, and leave the results on the stack starting at base. |
| Methods inherited from class org.luaj.vm.LFunction |
|---|
__index, __newindex, invoke, isFunction, luaGetType, toJavaString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public LPrototype p
public UpVal[] upVals
public LTable env
| Constructor Detail |
|---|
protected LClosure(LPrototype p,
LTable env)
p - env - | Method Detail |
|---|
public boolean luaStackCall(LuaState vm)
LFunction
luaStackCall in class LFunctionpublic boolean luaSetEnv(LTable t)
luaSetEnv in class LValuepublic LTable luaGetEnv(LTable d)
luaGetEnv in class LValued - global environment to return if this is not a closurepublic boolean isClosure()
isClosure in class LValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||