# Uses of Class org.luaj.vm2.LuaFunction (Luaj API)
Date: 2015-04-29

## Uses of Class
org.luaj.vm2.LuaFunction

Packages that use LuaFunction
org.luaj.vm2
org.luaj.vm2.compiler
org.luaj.vm2.lib
org.luaj.vm2.lib.jme
org.luaj.vm2.lib.jse
org.luaj.vm2.luajc

Uses of LuaFunction in org.luaj.vm2

Subclasses of LuaFunction in org.luaj.vm2
`class` `LuaClosure` Extension of `LuaFunction` which executes lua bytecode.

Methods in org.luaj.vm2 that return LuaFunction
`LuaFunction` `LuaFunction.checkfunction()`
`LuaFunction` `LuaValue.checkfunction()` Check that the value is a function , or throw `LuaError` if not
`LuaFunction` `Varargs.checkfunction(int i)` Return argument i as a function, or throw an error if an incompatible type.
`LuaFunction` `Globals.Loader.load(Prototype prototype, java.lang.String chunkname, LuaValue env)` Convert the prototype into a LuaFunction with the supplied environment.
`LuaFunction` `Varargs.optfunction(int i, LuaFunction defval)` Return argument i as a function, `defval` if nil, or throw a LuaError if an incompatible type.
`LuaFunction` `LuaFunction.optfunction(LuaFunction defval)`
`LuaFunction` `LuaNil.optfunction(LuaFunction defval)`
`LuaFunction` `LuaValue.optfunction(LuaFunction defval)` Check that optional argument is a function and return as `LuaFunction`

Methods in org.luaj.vm2 with parameters of type LuaFunction
`LuaFunction` `Varargs.optfunction(int i, LuaFunction defval)` Return argument i as a function, `defval` if nil, or throw a LuaError if an incompatible type.
`LuaFunction` `LuaFunction.optfunction(LuaFunction defval)`
`LuaFunction` `LuaNil.optfunction(LuaFunction defval)`
`LuaFunction` `LuaValue.optfunction(LuaFunction defval)` Check that optional argument is a function and return as `LuaFunction`

Uses of LuaFunction in org.luaj.vm2.compiler

Methods in org.luaj.vm2.compiler that return LuaFunction
`LuaFunction` `LuaC.load(Prototype prototype, java.lang.String chunkname, LuaValue env)`

Uses of LuaFunction in org.luaj.vm2.lib

Subclasses of LuaFunction in org.luaj.vm2.lib
`class` `BaseLib` Subclass of `LibFunction` which implements the lua basic library functions.
`class` `Bit32Lib` Subclass of LibFunction that implements the Lua standard `bit32` library.
`class` `CoroutineLib` Subclass of `LibFunction` which implements the lua standard `coroutine` library.
`class` `DebugLib` Subclass of `LibFunction` which implements the lua standard `debug` library.
`class` `IoLib` Abstract base class extending `LibFunction` which implements the core of the lua standard `io` library.
`class` `LibFunction` Subclass of `LuaFunction` common to Java functions exposed to lua.
`class` `MathLib` Subclass of `LibFunction` which implements the lua standard `math` library.
`protected static class` `MathLib.BinaryOp`
`protected static class` `MathLib.UnaryOp`
`class` `OneArgFunction` Abstract base class for Java function implementations that take one argument and return one value.
`class` `OsLib` Subclass of `LibFunction` which implements the standard lua `os` library.
`class` `PackageLib` Subclass of `LibFunction` which implements the lua standard package and module library functions.
`class` `PackageLib.java_searcher`
`static class` `PackageLib.loadlib`
`class` `PackageLib.lua_searcher`
`class` `PackageLib.preload_searcher`
`class` `PackageLib.require` require (modname) Loads the given module.
`class` `PackageLib.searchpath`
`class` `StringLib` Subclass of `LibFunction` which implements the lua standard `string` library.
`class` `TableLib` Subclass of `LibFunction` which implements the lua standard `table` library.
`class` `ThreeArgFunction` Abstract base class for Java function implementations that take two arguments and return one value.
`class` `TwoArgFunction` Abstract base class for Java function implementations that take two arguments and return one value.
`class` `VarArgFunction` Abstract base class for Java function implementations that takes varaiable arguments and returns multiple return values.
`class` `ZeroArgFunction` Abstract base class for Java function implementations that take no arguments and return one value.

Methods in org.luaj.vm2.lib with parameters of type LuaFunction
`void` `DebugLib.onCall(LuaFunction f)`

Uses of LuaFunction in org.luaj.vm2.lib.jme

Subclasses of LuaFunction in org.luaj.vm2.lib.jme
`class` `JmeIoLib` Subclass of `IoLib` and therefore `LibFunction` which implements the lua standard `io` library for the JSE platform.

Uses of LuaFunction in org.luaj.vm2.lib.jse

Subclasses of LuaFunction in org.luaj.vm2.lib.jse
`class` `JseBaseLib` Subclass of `BaseLib` and `LibFunction` which implements the lua basic library functions and provides a directory based `ResourceFinder` as the `Globals.finder`.
`class` `JseIoLib` Subclass of `IoLib` and therefore `LibFunction` which implements the lua standard `io` library for the JSE platform.
`class` `JseMathLib` Subclass of `LibFunction` which implements the lua standard `math` library.
`class` `JseOsLib` Subclass of `LibFunction` which implements the standard lua `os` library.
`class` `LuajavaLib` Subclass of `LibFunction` which implements the features of the luajava package.

Uses of LuaFunction in org.luaj.vm2.luajc

Methods in org.luaj.vm2.luajc that return LuaFunction
`LuaFunction` `LuaJC.load(Prototype p, java.lang.String name, LuaValue globals)`

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