Class Coroutine
java.lang.Object
se.krka.kahlua.vm.Coroutine
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCoroutine
(Platform arg0, KahluaTable arg1) Coroutine
(Platform arg0, KahluaTable arg1, KahluaThread arg2) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStackTrace
(LuaCallFrame arg0) boolean
atBottom()
void
cleanCallFrames
(LuaCallFrame arg0) void
closeUpvalues
(int arg0) void
destroy()
findUpvalue
(int arg0) getCallFrame
(int arg0) int
getCurrentStackTrace
(int arg0, int arg1, int arg2) getObjectFromStack
(int arg0) int
getParent
(int arg0) getParentNoAssert
(int arg0) int
getTop()
boolean
isDead()
void
pushNewCallFrame
(LuaClosure arg0, JavaFunction arg1, int arg2, int arg3, int arg4, boolean arg5, boolean arg6) void
void
setCallFrameStackTop
(int arg0) void
setTop
(int arg0) void
stackClear
(int arg0, int arg1) void
stackCopy
(int arg0, int arg1, int arg2) static void
yieldHelper
(LuaCallFrame arg0, LuaCallFrame arg1, int arg2)
-
Field Details
-
environment
-
stackTrace
-
objectStack
-
-
Constructor Details
-
Coroutine
public Coroutine() -
Coroutine
-
Coroutine
-
-
Method Details
-
getParent
-
pushNewCallFrame
public LuaCallFrame pushNewCallFrame(LuaClosure arg0, JavaFunction arg1, int arg2, int arg3, int arg4, boolean arg5, boolean arg6) -
popCallFrame
public void popCallFrame() -
setCallFrameStackTop
public void setCallFrameStackTop(int arg0) -
setTop
public void setTop(int arg0) -
stackCopy
public void stackCopy(int arg0, int arg1, int arg2) -
stackClear
public void stackClear(int arg0, int arg1) -
closeUpvalues
public void closeUpvalues(int arg0) -
findUpvalue
-
getObjectFromStack
-
getObjectStackSize
public int getObjectStackSize() -
getParentCallframe
-
currentCallFrame
-
getTop
public int getTop() -
getParent
-
getParentNoAssert
-
getCurrentStackTrace
-
cleanCallFrames
-
addStackTrace
-
isDead
public boolean isDead() -
getPlatform
-
getStatus
-
atBottom
public boolean atBottom() -
getCallframeTop
public int getCallframeTop() -
getCallframeStack
-
getCallFrame
-
yieldHelper
-
resume
-
getThread
-
destroy
public void destroy()
-