| 程序包 | 说明 |
|---|---|
| org.luaj.vm2 | |
| org.luaj.vm2.compiler | |
| org.luaj.vm2.lib | |
| org.luaj.vm2.lib.jse | |
| org.luaj.vm2.luajc |
| 限定符和类型 | 类和说明 |
|---|---|
class |
LuaClosure
Extension of
LuaFunction which executes lua bytecode. |
| 限定符和类型 | 方法和说明 |
|---|---|
LuaFunction |
LuaFunction.checkfunction() |
LuaFunction |
LuaValue.checkfunction()
Check that the value is a function , or throw
LuaError if not
A LuaFunction may either be a Java function that implements
functionality directly in Java, or a LuaClosure
which is a LuaFunction that executes lua bytecode. |
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,
String chunkname,
Globals globals,
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
A LuaFunction may either be a Java function that implements
functionality directly in Java, or a LuaClosure
which is a LuaFunction that executes lua bytecode. |
| 限定符和类型 | 方法和说明 |
|---|---|
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
A LuaFunction may either be a Java function that implements
functionality directly in Java, or a LuaClosure
which is a LuaFunction that executes lua bytecode. |
| 限定符和类型 | 方法和说明 |
|---|---|
LuaFunction |
LuaC.load(Prototype prototype,
String chunkname,
Globals globals,
LuaValue env) |
| 限定符和类型 | 类和说明 |
|---|---|
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.class_searcher |
class |
PackageLib.java_searcher |
static class |
PackageLib.loadlib |
class |
PackageLib.lua_searcher |
class |
PackageLib.module |
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 |
Utf8Lib
Created by nirenr on 2020/1/4.
|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DebugLib.onCall(LuaFunction f) |
| 限定符和类型 | 类和说明 |
|---|---|
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 |
JseStringLib |
class |
LuajavaLib
Subclass of
LibFunction which implements the features of the luajava package. |
| 限定符和类型 | 方法和说明 |
|---|---|
LuaFunction |
JavaLoader.load(JavaGen jg,
LuaValue env) |
LuaFunction |
LuaJC.load(Prototype p,
String name,
Globals globals,
LuaValue env) |
LuaFunction |
LuaJC.load(Prototype p,
String name,
LuaValue globals) |
LuaFunction |
JavaLoader.load(Prototype p,
String classname,
String filename,
LuaValue env) |
LuaFunction |
JavaLoader.load(String classname,
LuaValue env) |
Copyright © 2020. All rights reserved.