Package se.krka.kahlua.vm
Class Coroutine
java.lang.Object
se.krka.kahlua.vm.Coroutine
public class Coroutine
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description KahluaTable
environment
java.lang.Object[]
objectStack
java.lang.String
stackTrace
-
Constructor Summary
Constructors Constructor Description Coroutine()
Coroutine(Platform platform, KahluaTable kahluaTable)
Coroutine(Platform platform, KahluaTable kahluaTable, KahluaThread kahluaThread)
-
Method Summary
Modifier and Type Method Description void
addStackTrace(LuaCallFrame luaCallFrame)
boolean
atBottom()
void
cleanCallFrames(LuaCallFrame luaCallFrame)
void
closeUpvalues(int int1)
LuaCallFrame
currentCallFrame()
void
destroy()
UpValue
findUpvalue(int int1)
LuaCallFrame
getCallFrame(int int1)
LuaCallFrame[]
getCallframeStack()
int
getCallframeTop()
java.lang.String
getCurrentStackTrace(int int1, int int2, int int3)
java.lang.Object
getObjectFromStack(int int1)
int
getObjectStackSize()
Coroutine
getParent()
LuaCallFrame
getParent(int int1)
LuaCallFrame
getParentCallframe()
LuaCallFrame
getParentNoAssert(int int1)
Platform
getPlatform()
java.lang.String
getStatus()
KahluaThread
getThread()
int
getTop()
boolean
isDead()
void
popCallFrame()
LuaCallFrame
pushNewCallFrame(LuaClosure luaClosure, JavaFunction javaFunction, int int1, int int2, int int3, boolean boolean1, boolean boolean2)
void
resume(Coroutine coroutine)
void
setCallFrameStackTop(int int1)
void
setTop(int int1)
void
stackClear(int int1, int int2)
void
stackCopy(int int1, int int2, int int3)
static void
yieldHelper(LuaCallFrame luaCallFrame, LuaCallFrame luaCallFrame2, int int1)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
environment
-
stackTrace
public java.lang.String stackTrace -
objectStack
public java.lang.Object[] objectStack
-
-
Constructor Details
-
Coroutine
public Coroutine() -
Coroutine
-
Coroutine
-
-
Method Details
-
getParent
-
pushNewCallFrame
public final LuaCallFrame pushNewCallFrame(LuaClosure luaClosure, JavaFunction javaFunction, int int1, int int2, int int3, boolean boolean1, boolean boolean2) -
popCallFrame
public void popCallFrame() -
setCallFrameStackTop
public final void setCallFrameStackTop(int int1) -
setTop
public final void setTop(int int1) -
stackCopy
public final void stackCopy(int int1, int int2, int int3) -
stackClear
public final void stackClear(int int1, int int2) -
closeUpvalues
public final void closeUpvalues(int int1) -
findUpvalue
-
getObjectFromStack
public java.lang.Object getObjectFromStack(int int1) -
getObjectStackSize
public int getObjectStackSize() -
getParentCallframe
-
currentCallFrame
-
getTop
public int getTop() -
getParent
-
getParentNoAssert
-
getCurrentStackTrace
public java.lang.String getCurrentStackTrace(int int1, int int2, int int3) -
cleanCallFrames
-
addStackTrace
-
isDead
public boolean isDead() -
getPlatform
-
getStatus
public java.lang.String getStatus() -
atBottom
public boolean atBottom() -
getCallframeTop
public int getCallframeTop() -
getCallframeStack
-
getCallFrame
-
yieldHelper
-
resume
-
getThread
-
destroy
public void destroy()
-