org.luaj.vm2
Class TailcallVarargs

java.lang.Object
  extended by org.luaj.vm2.Varargs
      extended by org.luaj.vm2.TailcallVarargs

public class TailcallVarargs
extends Varargs


Constructor Summary
TailcallVarargs(LuaValue f, Varargs args)
           
 
Method Summary
 LuaValue arg(int i)
          Get the n-th argument value (1-based)
 LuaValue arg1()
          Get the first argument
 Varargs eval()
          Evaluate any pending tail call and return result
 boolean isTailcall()
          Return true if this is a TailcallVarargs
 int narg()
          Get the number of arguments, or 0 if there are none.
 
Methods inherited from class org.luaj.vm2.Varargs
argcheck, checkboolean, checkclosure, checkdouble, checkfunction, checkint, checkinteger, checkjstring, checklong, checknotnil, checknumber, checkstring, checkString, checktable, checkthread, checkuserdata, checkuserdata, checkvalue, isfunction, isnil, isnoneornil, isnumber, isstring, istable, isthread, isuserdata, isvalue, optboolean, optclosure, optdouble, optfunction, optint, optinteger, optjstring, optlong, optnumber, optstring, optString, opttable, optthread, optuserdata, optuserdata, optvalue, subargs, toboolean, tobyte, tochar, todouble, tofloat, toint, tojstring, tojstring, tolong, toshort, toString, touserdata, touserdata, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TailcallVarargs

public TailcallVarargs(LuaValue f,
                       Varargs args)
Method Detail

isTailcall

public boolean isTailcall()
Description copied from class: Varargs
Return true if this is a TailcallVarargs

Overrides:
isTailcall in class Varargs
Returns:
true if a tail call, false otherwise

eval

public Varargs eval()
Description copied from class: Varargs
Evaluate any pending tail call and return result

Overrides:
eval in class Varargs
Returns:
the evaluated tail call result

arg

public LuaValue arg(int i)
Description copied from class: Varargs
Get the n-th argument value (1-based)

Specified by:
arg in class Varargs
Parameters:
i - 1 for the first argument, 2 for the second, etc.
Returns:
Value at position i, or Value.NIL if there is none.

arg1

public LuaValue arg1()
Description copied from class: Varargs
Get the first argument

Specified by:
arg1 in class Varargs
Returns:
Value

narg

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

Specified by:
narg in class Varargs
Returns:
number of arguments.


Copyright © 2007-2013 Luaj.org. All Rights Reserved.