Class LuaNil

Direct Known Subclasses:
LuaValue.None

public class LuaNil extends LuaValue
Class to encapsulate behavior of the singleton instance nil

There will be one instance of this class, LuaValue.NIL, per Java virtual machine. However, the Varargs instance LuaValue.NONE which is the empty list, is also considered treated as a nil value by default.

Although it is possible to test for nil using Java == operator, the recommended approach is to use the method LuaValue.isnil() instead. By using that any ambiguities between LuaValue.NIL and LuaValue.NONE are avoided.

See Also: