Class ScriptManager.ReadOnlyLuaTable

All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
Enclosing class:
ScriptManager

public static class ScriptManager.ReadOnlyLuaTable extends LuaTable
  • Method Details

    • setmetatable

      public LuaValue setmetatable(LuaValue metatable)
      Description copied from class: LuaValue
      Set the metatable for this LuaValue

      For LuaTable and LuaUserdata instances, the metatable is per instance. For all other types, there is one metatable per type that can be set directly from java

      Overrides:
      setmetatable in class LuaTable
      Parameters:
      metatable - LuaValue instance to serve as the metatable, or null to reset it.
      Returns:
      this to allow chaining of Java function calls
    • set

      public void set(int key, LuaValue value)
      Description copied from class: LuaValue
      Set a value in a table without metatag processing using LuaValue.NEWINDEX.
      Overrides:
      set in class LuaTable
      Parameters:
      key - the key to use
      value - the value to use, can be LuaValue.NIL, must not be null
    • rawset

      public void rawset(int key, LuaValue value)
      Description copied from class: LuaValue
      Set a value in a table without metatag processing.
      Overrides:
      rawset in class LuaTable
      Parameters:
      key - the key to use
      value - the value to use, can be LuaValue.NIL, must not be null
    • rawset

      public void rawset(LuaValue key, LuaValue value)
      Description copied from class: LuaTable
      caller must ensure key is not nil
      Overrides:
      rawset in class LuaTable
      Parameters:
      key - the key to use, must not be LuaValue.NIL or null
      value - the value to use, can be LuaValue.NIL, must not be null
    • remove

      public LuaValue remove(int pos)
      Description copied from class: LuaTable
      Remove the element at a position in a list-table
      Overrides:
      remove in class LuaTable
      Parameters:
      pos - the position to remove
      Returns:
      The removed item, or LuaValue.NONE if not removed