Class Coroutine

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

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

      public UpValue findUpvalue(int arg0)
    • getObjectFromStack

      public Object getObjectFromStack(int arg0)
    • getObjectStackSize

      public int getObjectStackSize()
    • getParentCallframe

      public LuaCallFrame getParentCallframe()
    • currentCallFrame

      public LuaCallFrame currentCallFrame()
    • getTop

      public int getTop()
    • getParent

      public LuaCallFrame getParent(int arg0)
    • getParentNoAssert

      public LuaCallFrame getParentNoAssert(int arg0)
    • getCurrentStackTrace

      public String getCurrentStackTrace(int arg0, int arg1, int arg2)
    • cleanCallFrames

      public void cleanCallFrames(LuaCallFrame arg0)
    • addStackTrace

      public void addStackTrace(LuaCallFrame arg0)
    • 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 arg0)
    • yieldHelper

      public static void yieldHelper(LuaCallFrame arg0, LuaCallFrame arg1, int arg2)
    • resume

      public void resume(Coroutine arg0)
    • getThread

      public KahluaThread getThread()
    • destroy

      public void destroy()