All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.weeaboo.lua2.vm.None Maven / Gradle / Ivy

package nl.weeaboo.lua2.vm;

import nl.weeaboo.lua2.io.LuaSerializable;

/**
 * Varargs implemenation with no values.
 * 

* This is an internal class not intended to be used directly. Instead use the predefined constant * {@link #NONE} */ @LuaSerializable final class None extends LuaNil { private static final long serialVersionUID = 1L; static final None NONE = new None(); private None() { } @Override public LuaValue arg(int i) { return NIL; } @Override public Object readResolve() { // Special serialization returning the singleton return NONE; } @Override public int narg() { return 0; } @Override public LuaValue arg1() { return NIL; } @Override public String tojstring() { return "none"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy