| 程序包 | 说明 |
|---|---|
| org.luaj.vm2 | |
| org.luaj.vm2.lib |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Globals
Global environment used by luaj.
|
class |
LuaList
Created by nirenr on 2019/10/20.
|
| 限定符和类型 | 字段和说明 |
|---|---|
LuaTable |
LuaThread.registry |
| 限定符和类型 | 方法和说明 |
|---|---|
LuaTable |
LuaList.checktable() |
LuaTable |
LuaValue.checktable()
|
LuaTable |
LuaTable.checktable() |
LuaTable |
Varargs.checktable(int i)
Return argument i as a LuaTable if a lua table, or throw an error if any other type.
|
LuaTable |
LuaTable.clone() |
static LuaTable |
LuaValue.listOf(LuaValue[] unnamedValues)
Construct a
LuaTable initialized with supplied array values. |
static LuaTable |
LuaValue.listOf(LuaValue[] unnamedValues,
Varargs lastarg)
Construct a
LuaTable initialized with supplied array values. |
static LuaTable |
WeakTable.make(boolean weakkeys,
boolean weakvalues) |
LuaTable |
Varargs.opttable(int i,
LuaTable defval)
Return argument i as a LuaTable if a lua table,
defval if nil, or throw a LuaError if any other type. |
LuaTable |
LuaNil.opttable(LuaTable defval) |
LuaTable |
LuaList.opttable(LuaTable defval) |
LuaTable |
LuaValue.opttable(LuaTable defval)
Check that optional argument is a table and return as
LuaTable |
LuaTable |
LuaTable.opttable(LuaTable defval) |
static LuaTable |
LuaValue.tableOf()
Construct an empty
LuaTable. |
static LuaTable |
LuaValue.tableOf(int narray,
int nhash)
Construct an empty
LuaTable preallocated to hold array and hashed elements |
static LuaTable |
LuaValue.tableOf(LuaValue[] namedValues)
Construct a
LuaTable initialized with supplied named values. |
static LuaTable |
LuaValue.tableOf(LuaValue[] namedValues,
LuaValue[] unnamedValues)
Construct a
LuaTable initialized with supplied named values and sequential elements. |
static LuaTable |
LuaValue.tableOf(LuaValue[] namedValues,
LuaValue[] unnamedValues,
Varargs lastarg)
Construct a
LuaTable initialized with supplied named values and sequential elements in an array part and as varargs. |
static LuaTable |
LuaValue.tableOf(Varargs varargs,
int firstarg)
Construct a
LuaTable initialized with supplied array values. |
| 限定符和类型 | 方法和说明 |
|---|---|
LuaValue |
Globals.load(Reader reader,
String chunkname,
LuaTable environment)
Load the content form a reader as a text file, supplying a custom environment.
|
LuaValue |
Globals.load(String script,
String chunkname,
LuaTable environment)
Convenience function to load a string value as a script with a custom environment.
|
LuaTable |
Varargs.opttable(int i,
LuaTable defval)
Return argument i as a LuaTable if a lua table,
defval if nil, or throw a LuaError if any other type. |
LuaTable |
LuaNil.opttable(LuaTable defval) |
LuaTable |
LuaList.opttable(LuaTable defval) |
LuaTable |
LuaValue.opttable(LuaTable defval)
Check that optional argument is a table and return as
LuaTable |
LuaTable |
LuaTable.opttable(LuaTable defval) |
| 构造器和说明 |
|---|
LuaTable(LuaTable t) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PackageLib.setIsLoaded(String name,
LuaTable value)
Allow packages to mark themselves as loaded
|
protected double |
OsLib.time(LuaTable table)
Returns the current time when called without arguments,
or a time representing the date and time specified by the given table.
|
Copyright © 2020. All rights reserved.