Class LuaValue.None

Enclosing class:
LuaValue

public static final class LuaValue.None extends LuaNil
Varargs implemenation with no values.

This is an internal class not intended to be used directly. Instead use the predefined constant LuaValue.NONE

See Also:
  • Constructor Details

    • None

      public None()
  • Method Details

    • arg

      public LuaValue arg(int i)
      Description copied from class: Varargs
      Get the n-th argument value (1-based).
      Overrides:
      arg in class LuaValue
      Parameters:
      i - the index of the argument to get, 1 is the first argument
      Returns:
      Value at position i, or LuaValue.NIL if there is none.
      See Also:
    • narg

      public int narg()
      Description copied from class: Varargs
      Get the number of arguments, or 0 if there are none.
      Overrides:
      narg in class LuaValue
      Returns:
      number of arguments.
    • arg1

      public LuaValue arg1()
      Description copied from class: Varargs
      Get the first argument in the list.
      Overrides:
      arg1 in class LuaValue
      Returns:
      LuaValue which is first in the list, or LuaValue.NIL if there are no values.
      See Also:
    • tojstring

      public String tojstring()
      Description copied from class: LuaValue
      Convert to human readable String for any type.
      Overrides:
      tojstring in class LuaNil
      Returns:
      String for use by human readers based on type.
      See Also:
    • subargs

      public Varargs subargs(int start)
      Description copied from class: LuaValue
      Create a Varargs instance containing arguments starting at index start
      Overrides:
      subargs in class LuaValue
      Parameters:
      start - the index from which to include arguments, where 1 is the first argument.
      Returns:
      Varargs containing argument { start, start+1, ... , narg-start-1 }