Class Coroutine

java.lang.Object
se.krka.kahlua.vm.Coroutine

public class Coroutine extends Object
  • Field Details

    • environment

      public KahluaTable environment
    • stackTrace

      public String stackTrace
    • objectStack

      public Object[] objectStack
  • Constructor Details

  • Method Details

    • getParent

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

      public final UpValue findUpvalue(int int1)
    • getObjectFromStack

      public Object getObjectFromStack(int int1)
    • getObjectStackSize

      public int getObjectStackSize()
    • getParentCallframe

      public LuaCallFrame getParentCallframe()
    • currentCallFrame

      public final LuaCallFrame currentCallFrame()
    • getTop

      public int getTop()
    • getParent

      public LuaCallFrame getParent(int int1)
    • getParentNoAssert

      public LuaCallFrame getParentNoAssert(int int1)
    • getCurrentStackTrace

      public String getCurrentStackTrace(int int1, int int2, int int3)
    • cleanCallFrames

      public void cleanCallFrames(LuaCallFrame luaCallFrame)
    • addStackTrace

      public void addStackTrace(LuaCallFrame luaCallFrame)
    • isDead

      public boolean isDead()
    • getPlatform

      public Platform getPlatform()
    • getStatus

      public String getStatus()
    • atBottom

      public boolean atBottom()
    • getCallframeTop

      public int getCallframeTop()
    • getCallframeStack

      public LuaCallFrame[] getCallframeStack()
    • getCallFrame

      public LuaCallFrame getCallFrame(int int1)
    • yieldHelper

      public static void yieldHelper(LuaCallFrame luaCallFrame, LuaCallFrame luaCallFrame2, int int1)
    • resume

      public void resume(Coroutine coroutine)
    • getThread

      public KahluaThread getThread()
    • destroy

      public void destroy()