Class CallStack

java.lang.Object
com.prineside.luaj.debug.CallStack
All Implemented Interfaces:
KryoSerializable

public final class CallStack extends Object implements KryoSerializable
  • Field Details

    • DUMMY

      public static final CallStack DUMMY
    • calls

      public int calls
  • Constructor Details

    • CallStack

      public CallStack()
  • Method Details

    • write

      public void write(Kryo kryo, Output output)
      Specified by:
      write in interface KryoSerializable
    • read

      public void read(Kryo kryo, Input input)
      Specified by:
      read in interface KryoSerializable
    • onCall

      public void onCall(LuaFunction function)
    • onCall

      public void onCall(LuaClosure function, Varargs varargs, LuaValue[] stack)
    • onReturn

      public void onReturn()
    • onInstruction

      public void onInstruction(int pc, Varargs v, int top)
    • traceback

      public String traceback(int level)
      Get the traceback starting at a specific level.
      Parameters:
      level -
      Returns:
      String containing the traceback.
    • getCallFrame

      public CallFrame getCallFrame(int level)