Class ZeroArgFunction

All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
Direct Known Subclasses:
DebugLib.debug, DebugLib.getregistry

public abstract class ZeroArgFunction extends LibFunction
Abstract base class for Java function implementations that take no arguments and return one value.

Subclasses need only implement LuaValue.call() to complete this class, simplifying development. All other uses of call(LuaValue), invoke(Varargs),etc, are routed through this method by this class.

If one or more arguments are required, or variable argument or variable return values, then use one of the related function OneArgFunction, TwoArgFunction, ThreeArgFunction, or VarArgFunction.

See LibFunction for more information on implementation libraries and library functions.

See Also: