Class AbstractRefLuaValue

All Implemented Interfaces:
Map<LuaValue,LuaValue>, party.iroiro.luajava.cleaner.LuaReferable, LuaTableTrait, LuaValue
Direct Known Subclasses:
LuaTableValue, RefLuaValue

public abstract class AbstractRefLuaValue extends AbstractLuaValue<Lua> implements party.iroiro.luajava.cleaner.LuaReferable
  • Constructor Details

    • AbstractRefLuaValue

      public AbstractRefLuaValue(Lua L, Lua.LuaType type)
  • Method Details

    • push

      public void push(Lua L) throws LuaException
      Description copied from interface: LuaValue
      Pushes the Lua value onto the Lua stack of another thread sharing the same main state
      Specified by:
      push in interface LuaValue
      Parameters:
      L - another thread
      Throws:
      LuaException
    • toJavaObject

      public @Nullable Object toJavaObject()
      Description copied from interface: LuaValue
      Converts this Lua value to a Java object.
      Specified by:
      toJavaObject in interface LuaValue
      Returns:
      a Java value converted from this Lua value
      See Also:
    • getReference

      public int getReference()
      Specified by:
      getReference in interface party.iroiro.luajava.cleaner.LuaReferable
    • call

      public LuaValue[] call(Object... parameters)
      Description copied from interface: LuaValue
      Performs thisLuaValue(parameter1, parameter2, ...)
      Specified by:
      call in interface LuaValue
      Overrides:
      call in class AbstractLuaValue<Lua>
      Parameters:
      parameters - the parameters
      Returns:
      the return values, null on error