If {@code this} is a {@link LuaFunction}, call it, and return all values. Otherwise, look for the {@link CALL} metatag and call that.
To get a particular return value, us {@link Varargs#arg(int)}
To call {@link this} as a method call, use {@link #invokemethod(LuaValue)} instead. @return All return values as a {@link Varargs} instance. @throws LuaError if not a function and {@link CALL} is not defined, or the invoked function throws a {@link LuaError} or the invoked closure throw a lua {@code error} @see #call() @see #invoke(Varargs) @see #invokemethod(String) @see #invokemethod(LuaValue)
|
|
|
|