Class LuaJState

java.lang.Object
party.iroiro.luajava.luaj.LuaJState

public class LuaJState extends Object
  • Field Details

    • MAX_STACK_SLOTS

      public static final int MAX_STACK_SLOTS
      See Also:
    • address

      protected final int address
      A pseudo-address used by LuaJNatives. One may use it against LuaJInstances to fetch the corresponding LuaJState.
    • lid

      protected final int lid
      Lua ID used by the main LuaJava library.
    • globals

      protected final org.luaj.vm2.Globals globals
    • thread

      protected final org.luaj.vm2.LuaThread thread
    • luaStacks

      protected final List<List<org.luaj.vm2.LuaValue>> luaStacks
    • registry

      protected final org.luaj.vm2.LuaTable registry
    • jObjectMetatable

      protected final org.luaj.vm2.LuaTable jObjectMetatable
    • jClassMetatable

      protected final org.luaj.vm2.LuaTable jClassMetatable
    • jArrayMetatable

      protected final org.luaj.vm2.LuaTable jArrayMetatable
  • Constructor Details

    • LuaJState

      protected LuaJState(int address, int lid, org.luaj.vm2.Globals globals, org.luaj.vm2.LuaThread thread, LuaJState parent)
  • Method Details

    • stack

      protected List<org.luaj.vm2.LuaValue> stack()
    • getTop

      public int getTop()
    • setTop

      public void setTop(int top)
    • getRegistry

      public org.luaj.vm2.LuaValue getRegistry(String name)
    • setRegistry

      public void setRegistry(String name, org.luaj.vm2.LuaValue value)
    • insert

      public void insert(int i, org.luaj.vm2.LuaValue value)
    • push

      public void push(org.luaj.vm2.LuaValue value)
    • pop

      public void pop(int n)
    • toLuaValue

      public org.luaj.vm2.LuaValue toLuaValue(int stackIndex)
    • toAbsoluteIndex

      public int toAbsoluteIndex(int stackIndex)
    • remove

      public void remove(int i)
    • replace

      public void replace(int i, org.luaj.vm2.LuaValue value)
    • pushAll

      public void pushAll(org.luaj.vm2.Varargs args)
    • pushFrame

      public void pushFrame()
    • popFrame

      public void popFrame()
    • getError

      public Throwable getError()
    • setError

      public void setError(Throwable e)
    • unwrapLuaError

      public static Throwable unwrapLuaError(Throwable e)