| 程序包 | 说明 |
|---|---|
| org.luaj.vm2 | |
| org.luaj.vm2.ast | |
| org.luaj.vm2.compiler | |
| org.luaj.vm2.lib | |
| org.luaj.vm2.lib.jse | |
| org.luaj.vm2.luajc |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Globals
Global environment used by luaj.
|
class |
LuaBoolean
Extension of
LuaValue which can hold a Java boolean as its value. |
class |
LuaClosure
Extension of
LuaFunction which executes lua bytecode. |
class |
LuaDouble
Extension of
LuaNumber which can hold a Java double as its value. |
class |
LuaFunction
Base class for functions implemented in Java.
|
class |
LuaInteger
Extension of
LuaNumber which can hold a Java int as its value. |
class |
LuaList
Created by nirenr on 2019/10/20.
|
class |
LuaNil
Class to encapsulate behavior of the singleton instance
nil
There will be one instance of this class, NIL,
per Java virtual machine. |
class |
LuaNumber
Base class for representing numbers as lua values directly.
|
class |
LuaString
Subclass of
LuaValue for representing lua strings. |
class |
LuaTable
Subclass of
LuaValue for representing lua tables. |
class |
LuaThread
Subclass of
LuaValue that implements
a lua coroutine thread using Java Threads. |
class |
LuaUserdata |
class |
LuaUtf8String
Created by nirenr on 2020/1/4.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected LuaValue[] |
LuaTable.array
the array values
|
LuaValue |
LuaThread.errorfunc
Error message handler for this thread, if any.
|
LuaValue |
LuaThread.State.function |
LuaValue |
LuaThread.State.hookfunc
Hook function control state used by debug lib.
|
LuaValue[] |
Prototype.k |
LuaValue |
LuaUserdata.m_metatable |
static LuaValue |
LuaValue.NIL
LuaValue constant corresponding to lua
#NIL |
static LuaValue[] |
LuaValue.NILS
Array of
NIL values to optimize filling stacks using System.arraycopy(). |
static LuaValue |
LuaValue.NONE
LuaValue constant corresponding to a
Varargs list of no values |
static LuaValue[] |
LuaValue.NOVALS
LuaValue array constant with no values
|
static LuaValue |
LuaFunction.s_metatable
Shared static metatable for all functions and closures.
|
static LuaValue |
LuaNil.s_metatable |
static LuaValue |
LuaUtf8String.s_metatable
The singleton instance for string metatables that forwards to the string functions.
|
static LuaValue |
LuaNumber.s_metatable
Shared static metatable for all number values represented in lua.
|
static LuaValue |
LuaThread.s_metatable
Shared metatable for lua threads.
|
static LuaValue |
LuaBoolean.s_metatable
Shared static metatable for boolean values represented in lua.
|
static LuaValue |
LuaString.s_metatable
The singleton instance for string metatables that forwards to the string functions.
|
LuaValue |
LuaValue.uservalue |
| 限定符和类型 | 方法和说明 |
|---|---|
LuaValue |
LuaInteger.add(double lhs) |
LuaValue |
LuaUtf8String.add(double rhs) |
LuaValue |
LuaValue.add(double rhs)
|
LuaValue |
LuaString.add(double rhs) |
LuaValue |
LuaDouble.add(double lhs) |
LuaValue |
LuaUtf8String.add(int rhs) |
LuaValue |
LuaString.add(int rhs) |
LuaValue |
LuaInteger.add(long lhs) |
LuaValue |
LuaValue.add(long rhs)
|
LuaValue |
LuaInteger.add(LuaValue rhs) |
LuaValue |
LuaUtf8String.add(LuaValue rhs) |
LuaValue |
LuaValue.add(LuaValue rhs)
Add: Perform numeric add operation with another value
including metatag processing.
|
LuaValue |
LuaString.add(LuaValue rhs) |
LuaValue |
LuaDouble.add(LuaValue rhs) |
LuaValue |
LuaValue.and(LuaValue rhs)
Perform boolean
and with another operand, based on lua rules for boolean evaluation. |
LuaValue |
TailcallVarargs.arg(int i) |
LuaValue |
LuaValue.arg(int index) |
abstract LuaValue |
Varargs.arg(int i)
Get the n-th argument value (1-based).
|
LuaValue |
TailcallVarargs.arg1() |
LuaValue |
LuaValue.arg1() |
abstract LuaValue |
Varargs.arg1()
Get the first argument in the list.
|
static LuaValue |
LuaValue.argerror(int iarg,
String msg)
Throw a
LuaError indicating an invalid argument was supplied to a function |
protected LuaValue |
LuaValue.argerror(String expected)
Throw a
LuaError indicating an invalid argument was supplied to a function |
protected LuaValue |
LuaValue.aritherror()
Throw a
LuaError based on an arithmetic error such as add, or pow,
typically due to an invalid operand type |
protected LuaValue |
LuaValue.aritherror(String fun)
Throw a
LuaError based on an arithmetic error such as add, or pow,
typically due to an invalid operand type |
protected LuaValue |
LuaValue.arithmt(LuaValue tag,
LuaValue op2)
Perform metatag processing for arithmetic operations.
|
protected LuaValue |
LuaValue.arithmtwith(LuaValue tag,
double op1)
Perform metatag processing for arithmetic operations when the left-hand-side is a number.
|
LuaValue |
LuaList.arrayget(LuaValue[] array,
int index) |
LuaValue |
WeakTable.arrayget(LuaValue[] array,
int index) |
LuaValue |
LuaTable.arrayget(LuaValue[] array,
int index) |
LuaValue |
LuaInteger.band(long lhs) |
LuaValue |
LuaValue.band(long rhs) |
LuaValue |
LuaDouble.band(long lhs) |
LuaValue |
LuaInteger.band(LuaValue rhs) |
LuaValue |
LuaValue.band(LuaValue rhs) |
LuaValue |
LuaDouble.band(LuaValue rhs) |
LuaValue |
LuaInteger.bnot() |
LuaValue |
LuaValue.bnot() |
LuaValue |
LuaDouble.bnot() |
LuaValue |
LuaInteger.bor(long lhs) |
LuaValue |
LuaValue.bor(long rhs) |
LuaValue |
LuaDouble.bor(long lhs) |
LuaValue |
LuaInteger.bor(LuaValue rhs) |
LuaValue |
LuaValue.bor(LuaValue rhs) |
LuaValue |
LuaDouble.bor(LuaValue rhs) |
LuaValue |
LuaInteger.bxor(long lhs) |
LuaValue |
LuaValue.bxor(long rhs) |
LuaValue |
LuaDouble.bxor(long lhs) |
LuaValue |
LuaInteger.bxor(LuaValue rhs) |
LuaValue |
LuaValue.bxor(LuaValue rhs) |
LuaValue |
LuaDouble.bxor(LuaValue rhs) |
LuaValue |
LuaValue.call()
Call
this with 0 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaClosure.call() |
LuaValue |
LuaValue.call(LuaValue arg)
Call
this with 1 argument, including metatag processing,
and return only the first return value. |
LuaValue |
LuaClosure.call(LuaValue arg) |
LuaValue |
LuaValue.call(LuaValue arg1,
LuaValue arg2)
Call
this with 2 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaClosure.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
LuaValue.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3)
Call
this with 3 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaClosure.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
LuaValue |
LuaValue.call(String arg)
Convenience function which calls a luavalue with a single, string argument.
|
protected LuaValue |
LuaValue.callmt()
Get the metatag value for the
CALL metatag, if it exists. |
protected LuaValue |
LuaValue.checkmetatag(LuaValue tag,
String reason)
Get particular metatag, or throw
LuaError if it doesn't exist |
LuaValue |
LuaNil.checknotnil() |
LuaValue |
LuaValue.checknotnil()
|
LuaValue |
Varargs.checknotnil(int i)
Return argument i as a LuaValue if it is not nil, or throw an error if it is nil.
|
LuaValue |
Varargs.checkvalue(int i)
Return argument i as a LuaValue if it exists, or throw an error.
|
protected LuaValue |
LuaValue.compareerror(LuaValue rhs)
Throw a
LuaError based on a comparison error such as greater-than or less-than,
typically due to an invalid operand type |
protected LuaValue |
LuaValue.compareerror(String rhs)
Throw a
LuaError based on a comparison error such as greater-than or less-than,
typically due to an invalid operand type |
LuaValue |
LuaValue.comparemt(LuaValue tag,
LuaValue op1)
Perform metatag processing for comparison operations.
|
LuaValue |
LuaList.concat(LuaString sep,
int i,
int j)
Concatenate the contents of a table efficiently, using
Buffer |
LuaValue |
LuaTable.concat(LuaString sep,
int i,
int j)
Concatenate the contents of a table efficiently, using
Buffer |
LuaValue |
LuaUtf8String.concat(LuaValue rhs) |
LuaValue |
LuaNumber.concat(LuaValue rhs) |
LuaValue |
LuaValue.concat(LuaValue rhs)
Concatenate another value onto this value and return the result
using rules of lua string concatenation including metatag processing.
|
LuaValue |
LuaString.concat(LuaValue rhs) |
LuaValue |
LuaValue.concatmt(LuaValue rhs)
Perform metatag processing for concatenation operations.
|
LuaValue |
LuaUtf8String.concatTo(LuaNumber lhs) |
LuaValue |
LuaNumber.concatTo(LuaNumber lhs) |
LuaValue |
LuaValue.concatTo(LuaNumber lhs)
Reverse-concatenation: concatenate this value onto another value
known to be a
LuaNumber
and return the result using rules of lua string concatenation including
metatag processing. |
LuaValue |
LuaString.concatTo(LuaNumber lhs) |
LuaValue |
LuaNumber.concatTo(LuaString lhs) |
LuaValue |
LuaValue.concatTo(LuaString lhs)
Reverse-concatenation: concatenate this value onto another value
known to be a
LuaString
and return the result using rules of lua string concatenation including
metatag processing. |
LuaValue |
LuaString.concatTo(LuaString lhs) |
LuaValue |
LuaUtf8String.concatTo(LuaUtf8String lhs) |
LuaValue |
LuaValue.concatTo(LuaValue lhs)
Reverse-concatenation: concatenate this value onto another value
whose type is unknwon
and return the result using rules of lua string concatenation including
metatag processing.
|
static LuaValue |
LuaDouble.ddiv(double lhs,
double rhs)
Divide two double numbers according to lua math, and return a
LuaValue result. |
LuaValue |
LuaInteger.div(double rhs) |
LuaValue |
LuaUtf8String.div(double rhs) |
LuaValue |
LuaValue.div(double rhs)
Divide: Perform numeric divide operation by another value
of double type without metatag processing
this must derive from LuaNumber
or derive from LuaString and be convertible to a number
For metatag processing div(LuaValue) must be used |
LuaValue |
LuaString.div(double rhs) |
LuaValue |
LuaDouble.div(double rhs) |
LuaValue |
LuaUtf8String.div(int rhs) |
LuaValue |
LuaString.div(int rhs) |
LuaValue |
LuaInteger.div(long rhs) |
LuaValue |
LuaValue.div(long rhs)
Divide: Perform numeric divide operation by another value
of int type without metatag processing
this must derive from LuaNumber
or derive from LuaString and be convertible to a number
For metatag processing div(LuaValue) must be used |
LuaValue |
LuaDouble.div(long rhs) |
LuaValue |
LuaInteger.div(LuaValue rhs) |
LuaValue |
LuaUtf8String.div(LuaValue rhs) |
LuaValue |
LuaValue.div(LuaValue rhs)
Divide: Perform numeric divide operation by another value
of unknown type,
including metatag processing.
|
LuaValue |
LuaString.div(LuaValue rhs) |
LuaValue |
LuaDouble.div(LuaValue rhs) |
LuaValue |
LuaInteger.divInto(double lhs) |
LuaValue |
LuaUtf8String.divInto(double lhs) |
LuaValue |
LuaValue.divInto(double lhs)
|
LuaValue |
LuaString.divInto(double lhs) |
LuaValue |
LuaDouble.divInto(double lhs) |
static LuaValue |
LuaDouble.dmod(double lhs,
double rhs)
Take modulo double numbers according to lua math, and return a
LuaValue result. |
LuaValue |
LuaInteger.eq(LuaValue val) |
LuaValue |
LuaUtf8String.eq(LuaValue val) |
LuaValue |
LuaList.eq(LuaValue val) |
LuaValue |
LuaValue.eq(LuaValue val)
Equals: Perform equality comparison with another value
including metatag processing using
EQ. |
LuaValue |
LuaString.eq(LuaValue val) |
LuaValue |
LuaUserdata.eq(LuaValue val) |
LuaValue |
LuaDouble.eq(LuaValue val) |
LuaValue |
LuaTable.eq(LuaValue val) |
static LuaValue |
LuaValue.error(String message)
Throw a
LuaError with a particular message |
LuaValue |
LuaTable.find(LuaValue v,
LuaValue k) |
LuaValue |
LuaList.get(int key) |
LuaValue |
LuaValue.get(int key)
Get a value in a table including metatag processing using
INDEX. |
LuaValue |
LuaTable.get(int key) |
LuaValue |
LuaList.get(LuaValue key) |
LuaValue |
LuaValue.get(LuaValue key)
Get a value in a table including metatag processing using
INDEX. |
LuaValue |
LuaUserdata.get(LuaValue key) |
LuaValue |
LuaTable.get(LuaValue key) |
LuaValue |
LuaValue.get(String key)
Get a value in a table including metatag processing using
INDEX. |
LuaValue |
LuaFunction.getfenv() |
LuaValue |
LuaValue.getfenv() |
LuaValue |
LuaError.getMessageObject()
Get the LuaValue that was provided in the constructor, or
a LuaString containing the message if it was a string error argument.
|
LuaValue |
LuaFunction.getmetatable() |
LuaValue |
LuaNil.getmetatable() |
LuaValue |
LuaUtf8String.getmetatable() |
LuaValue |
LuaNumber.getmetatable() |
LuaValue |
LuaThread.getmetatable() |
LuaValue |
LuaList.getmetatable() |
LuaValue |
LuaBoolean.getmetatable() |
LuaValue |
LuaValue.getmetatable()
Get the metatable for this
LuaValue
For LuaTable and LuaUserdata instances,
the metatable returned is this instance metatable. |
LuaValue |
LuaString.getmetatable() |
LuaValue |
LuaClosure.getmetatable() |
LuaValue |
LuaUserdata.getmetatable() |
LuaValue |
LuaTable.getmetatable() |
protected static LuaValue |
LuaValue.gettable(LuaValue t,
LuaValue key)
get value from metatable operations, or NIL if not defined by metatables
|
protected LuaValue |
LuaClosure.getUpvalue(int i) |
LuaValue |
LuaValue.getuservalue() |
LuaValue |
UpValue.getValue()
Get the value of the upvalue
|
LuaValue |
LuaInteger.gt(double rhs) |
LuaValue |
LuaValue.gt(double rhs)
Greater than: Perform numeric comparison with another value
of double type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaDouble.gt(double rhs) |
LuaValue |
LuaInteger.gt(long rhs) |
LuaValue |
LuaValue.gt(long rhs)
Greater than: Perform numeric comparison with another value
of int type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaDouble.gt(long rhs) |
LuaValue |
LuaInteger.gt(LuaValue rhs) |
LuaValue |
LuaUtf8String.gt(LuaValue rhs) |
LuaValue |
LuaValue.gt(LuaValue rhs)
Greater than: Perform numeric or string comparison with another value
of unknown type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaString.gt(LuaValue rhs) |
LuaValue |
LuaDouble.gt(LuaValue rhs) |
LuaValue |
LuaInteger.gteq(double rhs) |
LuaValue |
LuaValue.gteq(double rhs)
Greater than or equals: Perform numeric comparison with another value
of double type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaDouble.gteq(double rhs) |
LuaValue |
LuaInteger.gteq(long rhs) |
LuaValue |
LuaValue.gteq(long rhs)
Greater than or equals: Perform numeric comparison with another value
of int type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaDouble.gteq(long rhs) |
LuaValue |
LuaInteger.gteq(LuaValue rhs) |
LuaValue |
LuaUtf8String.gteq(LuaValue rhs) |
LuaValue |
LuaValue.gteq(LuaValue rhs)
Greater than or equals: Perform numeric or string comparison with another value
of unknown type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaString.gteq(LuaValue rhs) |
LuaValue |
LuaDouble.gteq(LuaValue rhs) |
protected LuaValue |
LuaTable.hashget(LuaValue key) |
LuaValue |
LuaInteger.idiv(long lhs) |
LuaValue |
LuaValue.idiv(long rhs) |
LuaValue |
LuaDouble.idiv(long lhs) |
LuaValue |
LuaInteger.idiv(LuaValue rhs) |
LuaValue |
LuaValue.idiv(LuaValue rhs) |
LuaValue |
LuaDouble.idiv(LuaValue rhs) |
protected LuaValue |
LuaValue.illegal(String op,
String typename)
Throw a
LuaError indicating an illegal operation occurred,
typically involved in managing weak references |
LuaValue[] |
LuaList.keys()
This may be deprecated in a future release.
|
LuaValue[] |
LuaTable.keys()
This may be deprecated in a future release.
|
LuaValue |
LuaUtf8String.len() |
LuaValue |
LuaList.len() |
LuaValue |
LuaValue.len()
Length operator: return lua length of object
(#this) including metatag processing as java int |
LuaValue |
LuaString.len() |
LuaValue |
LuaTable.len() |
protected LuaValue |
LuaValue.lenerror()
Throw a
LuaError based on the len operator,
typically due to an invalid operand type |
LuaValue |
Globals.load(byte[] script,
String chunkname) |
LuaValue |
Globals.load(InputStream is,
String chunkname,
String mode,
LuaValue environment)
Load the content form an input stream as a binary chunk or text file.
|
LuaValue |
LuaValue.load(LuaValue library)
Load a library instance by calling it with and empty string as the modname,
and this Globals as the environment.
|
LuaValue |
Globals.load(Reader reader,
String chunkname)
Load the content form a reader as a text file.
|
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)
Convenience function to load a string value as a script.
|
LuaValue |
Globals.load(String script,
String chunkname)
Convenience function to load a string value as a script.
|
LuaValue |
Globals.load(String script,
String chunkname,
LuaTable environment)
Convenience function to load a string value as a script with a custom environment.
|
LuaValue |
Globals.loadfile(String filename)
Convenience function for loading a file that is either binary lua or lua source.
|
LuaValue |
Globals.loadfile(String filename,
LuaValue env) |
static LuaValue |
LoadState.longBitsToLuaNumber(long bits)
Convert bits in a long value to a
LuaValue. |
LuaValue |
LuaInteger.lt(double rhs) |
LuaValue |
LuaValue.lt(double rhs)
Less than: Perform numeric comparison with another value
of double type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaDouble.lt(double rhs) |
LuaValue |
LuaInteger.lt(long rhs) |
LuaValue |
LuaValue.lt(long rhs)
Less than: Perform numeric comparison with another value
of int type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaDouble.lt(long rhs) |
LuaValue |
LuaInteger.lt(LuaValue rhs) |
LuaValue |
LuaUtf8String.lt(LuaValue rhs) |
LuaValue |
LuaValue.lt(LuaValue rhs)
Less than: Perform numeric or string comparison with another value
of unknown type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaString.lt(LuaValue rhs) |
LuaValue |
LuaDouble.lt(LuaValue rhs) |
LuaValue |
LuaInteger.lteq(double rhs) |
LuaValue |
LuaValue.lteq(double rhs)
Less than or equals: Perform numeric comparison with another value
of double type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaDouble.lteq(double rhs) |
LuaValue |
LuaInteger.lteq(long rhs) |
LuaValue |
LuaValue.lteq(long rhs)
Less than or equals: Perform numeric comparison with another value
of int type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaDouble.lteq(long rhs) |
LuaValue |
LuaInteger.lteq(LuaValue rhs) |
LuaValue |
LuaUtf8String.lteq(LuaValue rhs) |
LuaValue |
LuaValue.lteq(LuaValue rhs)
Less than or equals: Perform numeric or string comparison with another value
of unknown type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaString.lteq(LuaValue rhs) |
LuaValue |
LuaDouble.lteq(LuaValue rhs) |
LuaValue |
LuaValue.metatag(LuaValue tag)
Get particular metatag, or return
NIL if it doesn't exist |
LuaValue |
LuaValue.method(LuaValue name)
Call named method on
this with 0 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaValue.method(LuaValue name,
LuaValue arg)
Call named method on
this with 1 argument, including metatag processing,
and return only the first return value. |
LuaValue |
LuaValue.method(LuaValue name,
LuaValue arg1,
LuaValue arg2)
Call named method on
this with 2 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaValue.method(String name)
Call named method on
this with 0 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaValue.method(String name,
LuaValue arg)
Call named method on
this with 1 argument, including metatag processing,
and return only the first return value. |
LuaValue |
LuaValue.method(String name,
LuaValue arg1,
LuaValue arg2)
Call named method on
this with 2 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaInteger.mod(double rhs) |
LuaValue |
LuaUtf8String.mod(double rhs) |
LuaValue |
LuaValue.mod(double rhs)
Modulo: Perform numeric modulo operation with another value
of double type without metatag processing
this must derive from LuaNumber
or derive from LuaString and be convertible to a number
For metatag processing mod(LuaValue) must be used |
LuaValue |
LuaString.mod(double rhs) |
LuaValue |
LuaDouble.mod(double rhs) |
LuaValue |
LuaUtf8String.mod(int rhs) |
LuaValue |
LuaString.mod(int rhs) |
LuaValue |
LuaInteger.mod(long rhs) |
LuaValue |
LuaValue.mod(long rhs)
Modulo: Perform numeric modulo operation with another value
of int type without metatag processing
this must derive from LuaNumber
or derive from LuaString and be convertible to a number
For metatag processing mod(LuaValue) must be used |
LuaValue |
LuaDouble.mod(long rhs) |
LuaValue |
LuaInteger.mod(LuaValue rhs) |
LuaValue |
LuaUtf8String.mod(LuaValue rhs) |
LuaValue |
LuaValue.mod(LuaValue rhs)
Modulo: Perform numeric modulo operation with another value
of unknown type,
including metatag processing.
|
LuaValue |
LuaString.mod(LuaValue rhs) |
LuaValue |
LuaDouble.mod(LuaValue rhs) |
LuaValue |
LuaInteger.modFrom(double lhs) |
LuaValue |
LuaUtf8String.modFrom(double lhs) |
LuaValue |
LuaValue.modFrom(double lhs)
|
LuaValue |
LuaString.modFrom(double lhs) |
LuaValue |
LuaDouble.modFrom(double lhs) |
LuaValue |
LuaInteger.mul(double lhs) |
LuaValue |
LuaUtf8String.mul(double rhs) |
LuaValue |
LuaValue.mul(double rhs)
|
LuaValue |
LuaString.mul(double rhs) |
LuaValue |
LuaDouble.mul(double lhs) |
LuaValue |
LuaUtf8String.mul(int rhs) |
LuaValue |
LuaString.mul(int rhs) |
LuaValue |
LuaInteger.mul(long lhs) |
LuaValue |
LuaValue.mul(long rhs)
|
LuaValue |
LuaDouble.mul(long lhs) |
LuaValue |
LuaInteger.mul(LuaValue rhs) |
LuaValue |
LuaUtf8String.mul(LuaValue rhs) |
LuaValue |
LuaValue.mul(LuaValue rhs)
Multiply: Perform numeric multiply operation with another value
of unknown type,
including metatag processing.
|
LuaValue |
LuaString.mul(LuaValue rhs) |
LuaValue |
LuaDouble.mul(LuaValue rhs) |
LuaValue |
LuaInteger.neg() |
LuaValue |
LuaUtf8String.neg() |
LuaValue |
LuaValue.neg()
Unary minus: return negative value
(-this) as defined by lua unary minus operator |
LuaValue |
LuaString.neg() |
LuaValue |
LuaDouble.neg() |
LuaValue |
LuaValue.neq(LuaValue val)
Notquals: Perform inequality comparison with another value
including metatag processing using
EQ. |
LuaValue |
LuaNil.not() |
LuaValue |
LuaBoolean.not() |
LuaValue |
LuaValue.not()
Unary not: return inverse boolean value
(~this) as defined by lua not operator |
LuaValue |
Varargs.optvalue(int i,
LuaValue defval)
Return argument i as a LuaValue if it exists, or
defval. |
LuaValue |
LuaNil.optvalue(LuaValue defval) |
LuaValue |
LuaValue.optvalue(LuaValue defval)
Perform argument check that this is not nil or none.
|
LuaValue |
LuaValue.or(LuaValue rhs)
Perform boolean
or with another operand, based on lua rules for boolean evaluation. |
LuaValue |
LuaInteger.pow(double rhs) |
LuaValue |
LuaUtf8String.pow(double rhs) |
LuaValue |
LuaValue.pow(double rhs)
|
LuaValue |
LuaString.pow(double rhs) |
LuaValue |
LuaDouble.pow(double rhs) |
LuaValue |
LuaUtf8String.pow(int rhs) |
LuaValue |
LuaString.pow(int rhs) |
LuaValue |
LuaInteger.pow(long rhs) |
LuaValue |
LuaValue.pow(long rhs)
|
LuaValue |
LuaDouble.pow(long rhs) |
LuaValue |
LuaInteger.pow(LuaValue rhs) |
LuaValue |
LuaUtf8String.pow(LuaValue rhs) |
LuaValue |
LuaValue.pow(LuaValue rhs)
Raise to power: Raise this value to a power
including metatag processing.
|
LuaValue |
LuaString.pow(LuaValue rhs) |
LuaValue |
LuaDouble.pow(LuaValue rhs) |
LuaValue |
LuaInteger.powWith(double lhs) |
LuaValue |
LuaUtf8String.powWith(double lhs) |
LuaValue |
LuaValue.powWith(double lhs)
|
LuaValue |
LuaString.powWith(double lhs) |
LuaValue |
LuaDouble.powWith(double lhs) |
LuaValue |
LuaUtf8String.powWith(int lhs) |
LuaValue |
LuaString.powWith(int lhs) |
LuaValue |
LuaInteger.powWith(long lhs) |
LuaValue |
LuaValue.powWith(long lhs)
|
LuaValue |
LuaDouble.powWith(long lhs) |
LuaValue |
LuaList.rawget(int key) |
LuaValue |
LuaValue.rawget(int key)
Get a value in a table without metatag processing.
|
LuaValue |
LuaTable.rawget(int key) |
LuaValue |
LuaList.rawget(LuaValue key) |
LuaValue |
LuaValue.rawget(LuaValue key)
Get a value in a table without metatag processing.
|
LuaValue |
LuaTable.rawget(LuaValue key) |
LuaValue |
LuaValue.rawget(String key)
Get a value in a table without metatag processing.
|
LuaValue |
LuaList.remove(int pos)
Remove the element at a position in a list-table
|
LuaValue |
LuaTable.remove(int pos)
Remove the element at a position in a list-table
|
LuaValue |
LuaList.setmetatable(LuaValue metatable) |
LuaValue |
LuaValue.setmetatable(LuaValue metatable)
Set the metatable for this
LuaValue
For LuaTable and LuaUserdata instances, the metatable is per instance. |
LuaValue |
LuaUserdata.setmetatable(LuaValue metatable) |
LuaValue |
LuaTable.setmetatable(LuaValue metatable) |
LuaValue |
LuaInteger.shl(long lhs) |
LuaValue |
LuaValue.shl(long rhs) |
LuaValue |
LuaDouble.shl(long lhs) |
LuaValue |
LuaInteger.shl(LuaValue rhs) |
LuaValue |
LuaValue.shl(LuaValue rhs) |
LuaValue |
LuaDouble.shl(LuaValue rhs) |
LuaValue |
LuaInteger.shr(long lhs) |
LuaValue |
LuaValue.shr(long rhs) |
LuaValue |
LuaDouble.shr(long lhs) |
LuaValue |
LuaInteger.shr(LuaValue rhs) |
LuaValue |
LuaValue.shr(LuaValue rhs) |
LuaValue |
LuaDouble.shr(LuaValue rhs) |
LuaValue |
LuaTable.size() |
protected static LuaValue |
WeakTable.strengthen(Object ref)
Unwrap a LuaValue from a WeakReference and/or WeakUserdata.
|
LuaValue |
WeakTable.WeakSlot.strongkey() |
LuaValue |
LuaValue.strongvalue()
Return this value as a strong reference, or null if it was weak and is no longer referenced.
|
LuaValue |
WeakTable.WeakSlot.strongvalue() |
LuaValue |
LuaInteger.sub(double rhs) |
LuaValue |
LuaUtf8String.sub(double rhs) |
LuaValue |
LuaValue.sub(double rhs)
|
LuaValue |
LuaString.sub(double rhs) |
LuaValue |
LuaDouble.sub(double rhs) |
LuaValue |
LuaUtf8String.sub(int rhs) |
LuaValue |
LuaString.sub(int rhs) |
LuaValue |
LuaInteger.sub(long rhs) |
LuaValue |
LuaValue.sub(long rhs)
|
LuaValue |
LuaDouble.sub(long rhs) |
LuaValue |
LuaInteger.sub(LuaValue rhs) |
LuaValue |
LuaUtf8String.sub(LuaValue rhs) |
LuaValue |
LuaValue.sub(LuaValue rhs)
Subtract: Perform numeric subtract operation with another value
of unknown type,
including metatag processing.
|
LuaValue |
LuaString.sub(LuaValue rhs) |
LuaValue |
LuaDouble.sub(LuaValue rhs) |
LuaValue |
LuaInteger.subFrom(double lhs) |
LuaValue |
LuaUtf8String.subFrom(double lhs) |
LuaValue |
LuaValue.subFrom(double lhs)
|
LuaValue |
LuaString.subFrom(double lhs) |
LuaValue |
LuaDouble.subFrom(double lhs) |
LuaValue |
LuaInteger.subFrom(long lhs) |
LuaValue |
LuaValue.subFrom(long lhs)
Reverse-subtract: Perform numeric subtract operation from a double value
without metatag processing
this must derive from LuaNumber
or derive from LuaString and be convertible to a number
For metatag processing sub(LuaValue) must be used |
LuaValue |
LuaList.toLuaValue() |
LuaValue |
WeakTable.toLuaValue() |
LuaValue |
LuaTable.toLuaValue() |
LuaValue |
LuaUtf8String.tonumber()
convert to a number using baee 10 or base 16 if it starts with '0x',
or NIL if it can't be converted
|
LuaValue |
LuaNumber.tonumber() |
LuaValue |
LuaValue.tonumber()
Conditionally convert to lua number without throwing errors.
|
LuaValue |
LuaString.tonumber()
convert to a number using baee 10 or base 16 if it starts with '0x',
or NIL if it can't be converted
|
LuaValue |
LuaDouble.tonumber() |
LuaValue |
LuaUtf8String.tonumber(int base)
convert to a number using a supplied base, or NIL if it can't be converted
|
LuaValue |
LuaString.tonumber(int base)
convert to a number using a supplied base, or NIL if it can't be converted
|
LuaValue |
LuaInteger.tostring() |
LuaValue |
LuaUtf8String.tostring() |
LuaValue |
LuaValue.tostring()
Conditionally convert to lua string without throwing errors.
|
LuaValue |
LuaString.tostring() |
LuaValue |
LuaDouble.tostring() |
protected LuaValue |
LuaValue.typerror(String expected)
Throw a
LuaError indicating an invalid type was supplied to a function |
protected LuaValue |
LuaValue.unimplemented(String fun)
Throw a
LuaError indicating an operation is not implemented |
LuaValue |
Buffer.value()
Get buffer contents as a
LuaValue |
protected static LuaValue |
WeakTable.weaken(LuaValue value)
Self-sent message to convert a value to its weak counterpart
|
LuaValue |
LuaList.wrap(LuaValue value) |
LuaValue |
WeakTable.wrap(LuaValue value) |
LuaValue |
LuaTable.wrap(LuaValue value) |
| 限定符和类型 | 方法和说明 |
|---|---|
LuaValue |
LuaInteger.add(LuaValue rhs) |
LuaValue |
LuaUtf8String.add(LuaValue rhs) |
LuaValue |
LuaValue.add(LuaValue rhs)
Add: Perform numeric add operation with another value
including metatag processing.
|
LuaValue |
LuaString.add(LuaValue rhs) |
LuaValue |
LuaDouble.add(LuaValue rhs) |
LuaValue |
LuaValue.and(LuaValue rhs)
Perform boolean
and with another operand, based on lua rules for boolean evaluation. |
Buffer |
Buffer.append(LuaValue val)
Append a
LuaValue to the buffer. |
protected LuaValue |
LuaValue.arithmt(LuaValue tag,
LuaValue op2)
Perform metatag processing for arithmetic operations.
|
protected LuaValue |
LuaValue.arithmtwith(LuaValue tag,
double op1)
Perform metatag processing for arithmetic operations when the left-hand-side is a number.
|
LuaValue |
LuaList.arrayget(LuaValue[] array,
int index) |
LuaValue |
WeakTable.arrayget(LuaValue[] array,
int index) |
LuaValue |
LuaTable.arrayget(LuaValue[] array,
int index) |
LuaValue |
LuaInteger.band(LuaValue rhs) |
LuaValue |
LuaValue.band(LuaValue rhs) |
LuaValue |
LuaDouble.band(LuaValue rhs) |
LuaValue |
LuaInteger.bor(LuaValue rhs) |
LuaValue |
LuaValue.bor(LuaValue rhs) |
LuaValue |
LuaDouble.bor(LuaValue rhs) |
LuaValue |
LuaInteger.bxor(LuaValue rhs) |
LuaValue |
LuaValue.bxor(LuaValue rhs) |
LuaValue |
LuaDouble.bxor(LuaValue rhs) |
LuaValue |
LuaValue.call(LuaValue arg)
Call
this with 1 argument, including metatag processing,
and return only the first return value. |
LuaValue |
LuaClosure.call(LuaValue arg) |
LuaValue |
LuaValue.call(LuaValue arg1,
LuaValue arg2)
Call
this with 2 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaClosure.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
LuaValue.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3)
Call
this with 3 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaClosure.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
protected LuaValue |
LuaValue.checkmetatag(LuaValue tag,
String reason)
Get particular metatag, or throw
LuaError if it doesn't exist |
protected LuaValue |
LuaValue.compareerror(LuaValue rhs)
Throw a
LuaError based on a comparison error such as greater-than or less-than,
typically due to an invalid operand type |
LuaValue |
LuaValue.comparemt(LuaValue tag,
LuaValue op1)
Perform metatag processing for comparison operations.
|
LuaValue |
LuaUtf8String.concat(LuaValue rhs) |
LuaValue |
LuaNumber.concat(LuaValue rhs) |
LuaValue |
LuaValue.concat(LuaValue rhs)
Concatenate another value onto this value and return the result
using rules of lua string concatenation including metatag processing.
|
LuaValue |
LuaString.concat(LuaValue rhs) |
LuaValue |
LuaValue.concatmt(LuaValue rhs)
Perform metatag processing for concatenation operations.
|
LuaValue |
LuaValue.concatTo(LuaValue lhs)
Reverse-concatenation: concatenate this value onto another value
whose type is unknwon
and return the result using rules of lua string concatenation including
metatag processing.
|
Buffer |
Buffer.concatTo(LuaValue lhs)
Concatenate this buffer onto a
LuaValue |
protected static org.luaj.vm2.LuaTable.Entry |
LuaTable.defaultEntry(LuaValue key,
LuaValue value) |
LuaValue |
LuaInteger.div(LuaValue rhs) |
LuaValue |
LuaUtf8String.div(LuaValue rhs) |
LuaValue |
LuaValue.div(LuaValue rhs)
Divide: Perform numeric divide operation by another value
of unknown type,
including metatag processing.
|
LuaValue |
LuaString.div(LuaValue rhs) |
LuaValue |
LuaDouble.div(LuaValue rhs) |
org.luaj.vm2.LuaTable.Slot |
WeakTable.entry(LuaValue key,
LuaValue value) |
org.luaj.vm2.LuaTable.Slot |
LuaTable.entry(LuaValue key,
LuaValue value) |
boolean |
LuaInteger.eq_b(LuaValue val) |
boolean |
LuaUtf8String.eq_b(LuaValue val) |
boolean |
LuaList.eq_b(LuaValue val) |
boolean |
LuaValue.eq_b(LuaValue val)
Equals: Perform equality comparison with another value
including metatag processing using
EQ,
and return java boolean |
boolean |
LuaString.eq_b(LuaValue val) |
boolean |
LuaUserdata.eq_b(LuaValue val) |
boolean |
LuaDouble.eq_b(LuaValue val) |
boolean |
LuaTable.eq_b(LuaValue val) |
LuaValue |
LuaInteger.eq(LuaValue val) |
LuaValue |
LuaUtf8String.eq(LuaValue val) |
LuaValue |
LuaList.eq(LuaValue val) |
LuaValue |
LuaValue.eq(LuaValue val)
Equals: Perform equality comparison with another value
including metatag processing using
EQ. |
LuaValue |
LuaString.eq(LuaValue val) |
LuaValue |
LuaUserdata.eq(LuaValue val) |
LuaValue |
LuaDouble.eq(LuaValue val) |
LuaValue |
LuaTable.eq(LuaValue val) |
boolean |
LuaUserdata.eqmt(LuaValue val) |
static boolean |
LuaValue.eqmtcall(LuaValue lhs,
LuaValue lhsmt,
LuaValue rhs,
LuaValue rhsmt)
Perform equality testing metatag processing
|
protected Varargs |
LuaClosure.execute(LuaValue[] stack,
Varargs varargs) |
org.luaj.vm2.LuaTable.StrongSlot |
WeakTable.WeakSlot.find(LuaValue key) |
LuaValue |
LuaTable.find(LuaValue v,
LuaValue k) |
LuaValue |
LuaList.get(LuaValue key) |
LuaValue |
LuaValue.get(LuaValue key)
Get a value in a table including metatag processing using
INDEX. |
LuaValue |
LuaUserdata.get(LuaValue key) |
LuaValue |
LuaTable.get(LuaValue key) |
protected static LuaValue |
LuaValue.gettable(LuaValue t,
LuaValue key)
get value from metatable operations, or NIL if not defined by metatables
|
boolean |
LuaInteger.gt_b(LuaValue rhs) |
boolean |
LuaUtf8String.gt_b(LuaValue rhs) |
boolean |
LuaValue.gt_b(LuaValue rhs)
Greater than: Perform numeric or string comparison with another value
of unknown type, including metatag processing,
and returning java boolean.
|
boolean |
LuaString.gt_b(LuaValue rhs) |
boolean |
LuaDouble.gt_b(LuaValue rhs) |
LuaValue |
LuaInteger.gt(LuaValue rhs) |
LuaValue |
LuaUtf8String.gt(LuaValue rhs) |
LuaValue |
LuaValue.gt(LuaValue rhs)
Greater than: Perform numeric or string comparison with another value
of unknown type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaString.gt(LuaValue rhs) |
LuaValue |
LuaDouble.gt(LuaValue rhs) |
boolean |
LuaInteger.gteq_b(LuaValue rhs) |
boolean |
LuaUtf8String.gteq_b(LuaValue rhs) |
boolean |
LuaValue.gteq_b(LuaValue rhs)
Greater than or equals: Perform numeric or string comparison with another value
of unknown type, including metatag processing,
and returning java boolean.
|
boolean |
LuaString.gteq_b(LuaValue rhs) |
boolean |
LuaDouble.gteq_b(LuaValue rhs) |
LuaValue |
LuaInteger.gteq(LuaValue rhs) |
LuaValue |
LuaUtf8String.gteq(LuaValue rhs) |
LuaValue |
LuaValue.gteq(LuaValue rhs)
Greater than or equals: Perform numeric or string comparison with another value
of unknown type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaString.gteq(LuaValue rhs) |
LuaValue |
LuaDouble.gteq(LuaValue rhs) |
protected LuaValue |
LuaTable.hashget(LuaValue key) |
void |
LuaTable.hashset(LuaValue key,
LuaValue value)
Set a hashtable value
|
static int |
LuaTable.hashSlot(LuaValue key,
int hashMask)
Find the hashtable slot index to use.
|
LuaValue |
LuaInteger.idiv(LuaValue rhs) |
LuaValue |
LuaValue.idiv(LuaValue rhs) |
LuaValue |
LuaDouble.idiv(LuaValue rhs) |
Varargs |
LuaList.inext(LuaValue key)
Get the next element after a particular key in the
contiguous array part of a table
|
Varargs |
LuaValue.inext(LuaValue index)
|
Varargs |
LuaTable.inext(LuaValue key)
Get the next element after a particular key in the
contiguous array part of a table
|
void |
LuaValue.initupvalue1(LuaValue env)
Hook for implementations such as LuaJC to load the environment of the main chunk
into the first upvalue location.
|
void |
LuaList.insert(int pos,
LuaValue value)
Insert an element at a position in a list-table
|
void |
LuaTable.insert(int pos,
LuaValue value)
Insert an element at a position in a list-table
|
Varargs |
LuaValue.invoke(LuaValue[] args)
Call
this with variable arguments, including metatag processing,
and retain all return values in a Varargs. |
Varargs |
LuaValue.invoke(LuaValue[] args,
Varargs varargs)
Call
this with variable arguments, including metatag processing,
and retain all return values in a Varargs. |
Varargs |
LuaValue.invoke(LuaValue arg1,
LuaValue arg2,
Varargs varargs)
Call
this with variable arguments, including metatag processing,
and retain all return values in a Varargs. |
Varargs |
LuaValue.invoke(LuaValue arg,
Varargs varargs)
Call
this with variable arguments, including metatag processing,
and retain all return values in a Varargs. |
Varargs |
LuaValue.invokemethod(LuaValue name)
Call named method on
this with 0 arguments, including metatag processing,
and retain all return values in a Varargs. |
Varargs |
LuaValue.invokemethod(LuaValue name,
LuaValue[] args)
Call named method on
this with variable arguments, including metatag processing,
and retain all return values in a Varargs. |
Varargs |
LuaValue.invokemethod(LuaValue name,
LuaValue[] args)
Call named method on
this with variable arguments, including metatag processing,
and retain all return values in a Varargs. |
Varargs |
LuaValue.invokemethod(LuaValue name,
Varargs args)
Call named method on
this with variable arguments, including metatag processing,
and retain all return values in a Varargs. |
Varargs |
LuaValue.invokemethod(String name,
LuaValue[] args)
Call named method on
this with 1 argument, including metatag processing,
and retain all return values in a Varargs. |
protected static boolean |
LuaTable.isLargeKey(LuaValue key) |
boolean |
WeakTable.WeakSlot.keyeq(LuaValue key) |
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. |
LuaValue |
Globals.load(InputStream is,
String chunkname,
String mode,
LuaValue environment)
Load the content form an input stream as a binary chunk or text file.
|
LuaValue |
LuaValue.load(LuaValue library)
Load a library instance by calling it with and empty string as the modname,
and this Globals as the environment.
|
LuaFunction |
Globals.Loader.load(Prototype prototype,
String chunkname,
Globals globals,
LuaValue env)
Convert the prototype into a LuaFunction with the supplied environment.
|
LuaValue |
Globals.loadfile(String filename,
LuaValue env) |
boolean |
LuaInteger.lt_b(LuaValue rhs) |
boolean |
LuaUtf8String.lt_b(LuaValue rhs) |
boolean |
LuaValue.lt_b(LuaValue rhs)
Less than: Perform numeric or string comparison with another value
of unknown type, including metatag processing,
and returning java boolean.
|
boolean |
LuaString.lt_b(LuaValue rhs) |
boolean |
LuaDouble.lt_b(LuaValue rhs) |
LuaValue |
LuaInteger.lt(LuaValue rhs) |
LuaValue |
LuaUtf8String.lt(LuaValue rhs) |
LuaValue |
LuaValue.lt(LuaValue rhs)
Less than: Perform numeric or string comparison with another value
of unknown type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaString.lt(LuaValue rhs) |
LuaValue |
LuaDouble.lt(LuaValue rhs) |
boolean |
LuaInteger.lteq_b(LuaValue rhs) |
boolean |
LuaUtf8String.lteq_b(LuaValue rhs) |
boolean |
LuaValue.lteq_b(LuaValue rhs)
Less than or equals: Perform numeric or string comparison with another value
of unknown type, including metatag processing,
and returning java boolean.
|
boolean |
LuaString.lteq_b(LuaValue rhs) |
boolean |
LuaDouble.lteq_b(LuaValue rhs) |
LuaValue |
LuaInteger.lteq(LuaValue rhs) |
LuaValue |
LuaUtf8String.lteq(LuaValue rhs) |
LuaValue |
LuaValue.lteq(LuaValue rhs)
Less than or equals: Perform numeric or string comparison with another value
of unknown type,
including metatag processing, and returning
LuaValue. |
LuaValue |
LuaString.lteq(LuaValue rhs) |
LuaValue |
LuaDouble.lteq(LuaValue rhs) |
protected static org.luaj.vm2.Metatable |
LuaValue.metatableOf(LuaValue mt)
Construct a Metatable instance from the given LuaValue
|
LuaValue |
LuaValue.metatag(LuaValue tag)
Get particular metatag, or return
NIL if it doesn't exist |
LuaValue |
LuaValue.method(LuaValue name)
Call named method on
this with 0 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaValue.method(LuaValue name,
LuaValue arg)
Call named method on
this with 1 argument, including metatag processing,
and return only the first return value. |
LuaValue |
LuaValue.method(LuaValue name,
LuaValue arg1,
LuaValue arg2)
Call named method on
this with 2 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaValue.method(String name,
LuaValue arg)
Call named method on
this with 1 argument, including metatag processing,
and return only the first return value. |
LuaValue |
LuaValue.method(String name,
LuaValue arg1,
LuaValue arg2)
Call named method on
this with 2 arguments, including metatag processing,
and return only the first return value. |
LuaValue |
LuaInteger.mod(LuaValue rhs) |
LuaValue |
LuaUtf8String.mod(LuaValue rhs) |
LuaValue |
LuaValue.mod(LuaValue rhs)
Modulo: Perform numeric modulo operation with another value
of unknown type,
including metatag processing.
|
LuaValue |
LuaString.mod(LuaValue rhs) |
LuaValue |
LuaDouble.mod(LuaValue rhs) |
LuaValue |
LuaInteger.mul(LuaValue rhs) |
LuaValue |
LuaUtf8String.mul(LuaValue rhs) |
LuaValue |
LuaValue.mul(LuaValue rhs)
Multiply: Perform numeric multiply operation with another value
of unknown type,
including metatag processing.
|
LuaValue |
LuaString.mul(LuaValue rhs) |
LuaValue |
LuaDouble.mul(LuaValue rhs) |
boolean |
LuaValue.neq_b(LuaValue val)
Notquals: Perform inequality comparison with another value
including metatag processing using
EQ. |
LuaValue |
LuaValue.neq(LuaValue val)
Notquals: Perform inequality comparison with another value
including metatag processing using
EQ. |
Varargs |
LuaList.next(LuaValue key)
Get the next element after a particular key in the table
|
Varargs |
LuaValue.next(LuaValue index)
|
Varargs |
LuaTable.next(LuaValue key)
Get the next element after a particular key in the table
|
LuaValue |
Varargs.optvalue(int i,
LuaValue defval)
Return argument i as a LuaValue if it exists, or
defval. |
LuaValue |
LuaNil.optvalue(LuaValue defval) |
LuaValue |
LuaValue.optvalue(LuaValue defval)
Perform argument check that this is not nil or none.
|
LuaValue |
LuaValue.or(LuaValue rhs)
Perform boolean
or with another operand, based on lua rules for boolean evaluation. |
LuaValue |
LuaInteger.pow(LuaValue rhs) |
LuaValue |
LuaUtf8String.pow(LuaValue rhs) |
LuaValue |
LuaValue.pow(LuaValue rhs)
Raise to power: Raise this value to a power
including metatag processing.
|
LuaValue |
LuaString.pow(LuaValue rhs) |
LuaValue |
LuaDouble.pow(LuaValue rhs) |
static void |
Print.printStack(LuaValue[] stack,
int top,
Varargs varargs) |
static void |
Print.printState(LuaClosure cl,
int pc,
LuaValue[] stack,
int top,
Varargs varargs)
Print the state of a
LuaClosure that is being executed |
boolean |
LuaInteger.raweq(LuaValue val) |
boolean |
LuaUtf8String.raweq(LuaValue val) |
boolean |
LuaValue.raweq(LuaValue val)
Equals: Perform direct equality comparison with another value
without metatag processing.
|
boolean |
LuaString.raweq(LuaValue val) |
boolean |
LuaUserdata.raweq(LuaValue val) |
boolean |
LuaDouble.raweq(LuaValue val) |
LuaValue |
LuaList.rawget(LuaValue key) |
LuaValue |
LuaValue.rawget(LuaValue key)
Get a value in a table without metatag processing.
|
LuaValue |
LuaTable.rawget(LuaValue key) |
void |
LuaList.rawset(int key,
LuaValue value) |
void |
LuaValue.rawset(int key,
LuaValue value)
Set a value in a table without metatag processing.
|
void |
LuaTable.rawset(int key,
LuaValue value) |
void |
LuaList.rawset(LuaValue key,
LuaValue value)
caller must ensure key is not nil
|
void |
LuaValue.rawset(LuaValue key,
LuaValue value)
Set a value in a table without metatag processing.
|
void |
LuaTable.rawset(LuaValue key,
LuaValue value)
caller must ensure key is not nil
|
void |
LuaValue.rawset(String key,
LuaValue value)
Set a value in a table without metatag processing.
|
void |
LuaList.set(int key,
LuaValue value) |
void |
LuaValue.set(int key,
LuaValue value)
Set a value in a table without metatag processing using
NEWINDEX. |
void |
LuaTable.set(int key,
LuaValue value) |
org.luaj.vm2.LuaTable.Slot |
WeakTable.WeakSlot.set(org.luaj.vm2.LuaTable.StrongSlot target,
LuaValue value) |
abstract org.luaj.vm2.LuaTable.Slot |
WeakTable.WeakSlot.set(LuaValue value) |
void |
LuaList.set(LuaValue key,
LuaValue value)
caller must ensure key is not nil
|
void |
LuaValue.set(LuaValue key,
LuaValue value)
Set a value in a table without metatag processing using
NEWINDEX. |
void |
LuaUserdata.set(LuaValue key,
LuaValue value) |
void |
LuaTable.set(LuaValue key,
LuaValue value)
caller must ensure key is not nil
|
void |
LuaValue.set(String key,
LuaValue value)
Set a value in a table without metatag processing using
NEWINDEX. |
void |
LuaFunction.setfenv(LuaValue env) |
void |
LuaValue.setfenv(LuaValue env) |
LuaValue |
LuaList.setmetatable(LuaValue metatable) |
LuaValue |
LuaValue.setmetatable(LuaValue metatable)
Set the metatable for this
LuaValue
For LuaTable and LuaUserdata instances, the metatable is per instance. |
LuaValue |
LuaUserdata.setmetatable(LuaValue metatable) |
LuaValue |
LuaTable.setmetatable(LuaValue metatable) |
protected static boolean |
LuaValue.settable(LuaValue t,
LuaValue key,
LuaValue value)
Perform field assignment including metatag processing.
|
protected void |
LuaClosure.setUpvalue(int i,
LuaValue v) |
void |
LuaValue.setuservalue(LuaValue uservalue) |
Buffer |
Buffer.setvalue(LuaValue value)
Set buffer contents as a
LuaValue |
void |
UpValue.setValue(LuaValue value)
Set the value of the upvalue
|
LuaValue |
LuaInteger.shl(LuaValue rhs) |
LuaValue |
LuaValue.shl(LuaValue rhs) |
LuaValue |
LuaDouble.shl(LuaValue rhs) |
LuaValue |
LuaInteger.shr(LuaValue rhs) |
LuaValue |
LuaValue.shr(LuaValue rhs) |
LuaValue |
LuaDouble.shr(LuaValue rhs) |
void |
LuaList.sort(LuaValue comparator)
Sort the table using a comparator.
|
void |
LuaTable.sort(LuaValue comparator)
Sort the table using a comparator.
|
int |
LuaUtf8String.strcmp(LuaValue lhs) |
int |
LuaValue.strcmp(LuaValue rhs)
Perform string comparison with another value
of any type
using string comparison based on byte values.
|
int |
LuaString.strcmp(LuaValue lhs) |
LuaValue |
LuaInteger.sub(LuaValue rhs) |
LuaValue |
LuaUtf8String.sub(LuaValue rhs) |
LuaValue |
LuaValue.sub(LuaValue rhs)
Subtract: Perform numeric subtract operation with another value
of unknown type,
including metatag processing.
|
LuaValue |
LuaString.sub(LuaValue rhs) |
LuaValue |
LuaDouble.sub(LuaValue rhs) |
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)
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(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 Varargs |
LuaValue.tailcallOf(LuaValue func,
Varargs args)
Construct a
TailcallVarargs around a function and arguments. |
boolean |
LuaValue.testfor_b(LuaValue limit,
LuaValue step)
Perform end-condition test in for-loop processing.
|
static LuaUserdata |
LuaValue.userdataOf(Object o,
LuaValue metatable)
Construct a LuaUserdata for an object with a user supplied metatable.
|
static Varargs |
LuaValue.varargsOf(LuaValue[] v)
|
static Varargs |
LuaValue.varargsOf(LuaValue[] v,
int offset,
int length)
|
static Varargs |
LuaValue.varargsOf(LuaValue[] v,
int offset,
int length,
Varargs more)
|
static Varargs |
LuaValue.varargsOf(LuaValue[] v,
Varargs r)
|
static Varargs |
LuaValue.varargsOf(LuaValue v1,
LuaValue v2,
Varargs v3)
|
static Varargs |
LuaValue.varargsOf(LuaValue v,
Varargs r)
|
protected static LuaValue |
WeakTable.weaken(LuaValue value)
Self-sent message to convert a value to its weak counterpart
|
LuaValue |
LuaList.wrap(LuaValue value) |
LuaValue |
WeakTable.wrap(LuaValue value) |
LuaValue |
LuaTable.wrap(LuaValue value) |
| 构造器和说明 |
|---|
Buffer(LuaValue value)
Create buffer with specified initial value
|
LuaClosure(Prototype p,
Globals globals,
LuaValue env)
Create a closure around a Prototype with a specific environment.
|
LuaError(LuaValue message_object)
Construct a LuaError with a LuaValue as the message object,
and level to draw line number information from.
|
LuaFunction(LuaValue env) |
LuaTable(LuaValue[] named,
LuaValue[] unnamed,
Varargs lastarg)
Construct table with named and unnamed parts.
|
LuaTable(LuaValue[] named,
LuaValue[] unnamed,
Varargs lastarg)
Construct table with named and unnamed parts.
|
LuaThread(Globals globals,
LuaValue func)
Create a LuaThread around a function and environment
|
LuaUserdata(Object obj,
LuaValue metatable) |
TailcallVarargs(LuaValue object,
LuaValue methodname,
Varargs args) |
TailcallVarargs(LuaValue f,
Varargs args) |
UpValue(LuaValue[] stack,
int index)
Create an upvalue relative to a stack
|
WeakTable(boolean weakkeys,
boolean weakvalues,
LuaValue backing)
Construct a table with weak keys, weak values, or both
|
| 限定符和类型 | 字段和说明 |
|---|---|
LuaValue |
Variable.initialValue
When hasassignments == false, and the initial value is a constant, this is the initial value
|
LuaValue |
Exp.Constant.value |
| 限定符和类型 | 方法和说明 |
|---|---|
static Exp |
Exp.constant(LuaValue value) |
| 构造器和说明 |
|---|
Constant(LuaValue value) |
| 限定符和类型 | 方法和说明 |
|---|---|
LuaValue |
LuaC.load(InputStream stream,
String chunkname,
Globals globals)
已过时。
Use Globals.load(InputString, String, String) instead,
or LuaC.compile(InputStream, String) and construct LuaClosure directly.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
protected class |
IoLib.File |
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
LuaValue |
TwoArgFunction.call() |
LuaValue |
ThreeArgFunction.call() |
abstract LuaValue |
ZeroArgFunction.call() |
LuaValue |
OneArgFunction.call() |
LuaValue |
VarArgFunction.call() |
LuaValue |
LibFunction.call() |
LuaValue |
MathLib.UnaryOp.call(LuaValue arg) |
LuaValue |
TwoArgFunction.call(LuaValue arg) |
LuaValue |
ThreeArgFunction.call(LuaValue arg) |
LuaValue |
ZeroArgFunction.call(LuaValue arg) |
abstract LuaValue |
OneArgFunction.call(LuaValue arg) |
LuaValue |
PackageLib.require.call(LuaValue arg) |
LuaValue |
VarArgFunction.call(LuaValue arg) |
LuaValue |
LibFunction.call(LuaValue a) |
LuaValue |
TableLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
OsLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
MathLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
MathLib.BinaryOp.call(LuaValue x,
LuaValue y) |
abstract LuaValue |
TwoArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
Bit32Lib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
ThreeArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
BaseLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by adding base functions
to the supplied environment, and returning it as the return value.
|
LuaValue |
StringLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
ZeroArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
OneArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
IoLib.call(LuaValue modname,
LuaValue env) |
LuaValue |
PackageLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by adding package functions
to the supplied environment, and returning it as the return value.
|
LuaValue |
Utf8Lib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
VarArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
CoroutineLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
LibFunction.call(LuaValue a,
LuaValue b) |
LuaValue |
DebugLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
TwoArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
abstract LuaValue |
ThreeArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
LuaValue |
ZeroArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
LuaValue |
OneArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
LuaValue |
VarArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
LuaValue |
LibFunction.call(LuaValue a,
LuaValue b,
LuaValue c) |
LuaValue |
LibFunction.call(LuaValue a,
LuaValue b,
LuaValue c,
LuaValue d) |
static LuaValue |
MathLib.dpow(double a,
double b)
compute power using installed math library, or default if there is no math library installed
|
static LuaValue |
IoLib.freadall(IoLib.File f) |
static LuaValue |
IoLib.freadbytes(IoLib.File f,
int count) |
static LuaValue |
IoLib.freadline(IoLib.File f,
boolean withend) |
static LuaValue |
IoLib.freadnumber(IoLib.File f) |
static LuaValue |
IoLib.freaduntil(IoLib.File f,
boolean lineonly,
boolean withend) |
LuaValue |
IoLib.File.get(LuaValue key) |
protected static LuaValue[] |
LibFunction.newupe()
Java code generation utility to allocate storage for upvalue, leave it empty
|
protected static LuaValue[] |
LibFunction.newupl(LuaValue v)
Java code generation utility to allocate storage for upvalue, initialize with value
|
protected static LuaValue[] |
LibFunction.newupn()
Java code generation utility to allocate storage for upvalue, initialize with nil
|
| 限定符和类型 | 方法和说明 |
|---|---|
Varargs |
IoLib._file_close(LuaValue file) |
Varargs |
IoLib._file_flush(LuaValue file) |
Varargs |
IoLib._file_read(LuaValue file,
Varargs subargs) |
Varargs |
IoLib._file_seek(LuaValue file,
String whence,
int offset) |
Varargs |
IoLib._file_setvbuf(LuaValue file,
String mode,
int size) |
Varargs |
IoLib._file_write(LuaValue file,
Varargs subargs) |
Varargs |
IoLib._io_close(LuaValue file) |
Varargs |
IoLib._io_index(LuaValue v) |
Varargs |
IoLib._io_input(LuaValue file) |
Varargs |
IoLib._io_output(LuaValue filename) |
Varargs |
IoLib._io_type(LuaValue obj) |
Varargs |
IoLib._lines_iter(LuaValue file,
boolean toclose,
Varargs args) |
protected void |
LibFunction.bind(LuaValue env,
Class factory,
String[] names)
Bind a set of library functions.
|
protected void |
LibFunction.bind(LuaValue env,
Class factory,
String[] names,
int firstopcode)
Bind a set of library functions, with an offset
An array of names is provided, and the first name is bound
with opcode =
firstopcode, second with firstopcode+1, etc. |
LuaValue |
MathLib.UnaryOp.call(LuaValue arg) |
LuaValue |
TwoArgFunction.call(LuaValue arg) |
LuaValue |
ThreeArgFunction.call(LuaValue arg) |
LuaValue |
ZeroArgFunction.call(LuaValue arg) |
abstract LuaValue |
OneArgFunction.call(LuaValue arg) |
LuaValue |
PackageLib.require.call(LuaValue arg) |
LuaValue |
VarArgFunction.call(LuaValue arg) |
LuaValue |
LibFunction.call(LuaValue a) |
LuaValue |
TableLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
OsLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
MathLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
MathLib.BinaryOp.call(LuaValue x,
LuaValue y) |
abstract LuaValue |
TwoArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
Bit32Lib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
ThreeArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
BaseLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by adding base functions
to the supplied environment, and returning it as the return value.
|
LuaValue |
StringLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
ZeroArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
OneArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
IoLib.call(LuaValue modname,
LuaValue env) |
LuaValue |
PackageLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by adding package functions
to the supplied environment, and returning it as the return value.
|
LuaValue |
Utf8Lib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
VarArgFunction.call(LuaValue arg1,
LuaValue arg2) |
LuaValue |
CoroutineLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
LibFunction.call(LuaValue a,
LuaValue b) |
LuaValue |
DebugLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
TwoArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
abstract LuaValue |
ThreeArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
LuaValue |
ZeroArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
LuaValue |
OneArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
LuaValue |
VarArgFunction.call(LuaValue arg1,
LuaValue arg2,
LuaValue arg3) |
LuaValue |
LibFunction.call(LuaValue a,
LuaValue b,
LuaValue c) |
LuaValue |
LibFunction.call(LuaValue a,
LuaValue b,
LuaValue c,
LuaValue d) |
LuaValue |
IoLib.File.get(LuaValue key) |
Varargs |
BaseLib.loadFile(String filename,
String mode,
LuaValue env)
Load from a named file, returning the chunk or nil,error of can't load
|
Varargs |
BaseLib.loadStream(InputStream is,
String chunkname,
String mode,
LuaValue env) |
protected static LuaValue[] |
LibFunction.newupl(LuaValue v)
Java code generation utility to allocate storage for upvalue, initialize with value
|
void |
DebugLib.onCall(LuaClosure c,
Varargs varargs,
LuaValue[] stack) |
| 限定符和类型 | 类和说明 |
|---|---|
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. |
| 限定符和类型 | 方法和说明 |
|---|---|
static LuaValue |
LuajavaLib.asTable(boolean dep,
Object obj) |
static LuaValue |
LuajavaLib.asTable(Object obj) |
LuaValue |
JseBaseLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
JseMathLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
static LuaValue |
CoerceJavaToLua.coerce(Object o)
Coerse a Java object to a corresponding lua value.
|
| 限定符和类型 | 方法和说明 |
|---|---|
LuaValue |
JseBaseLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
LuaValue |
JseMathLib.call(LuaValue modname,
LuaValue env)
Perform one-time initialization on the library by creating a table
containing the library functions, adding that table to the supplied environment,
adding the table to package.loaded, and returning table as the return value.
|
static Object |
CoerceLuaToJava.coerce(LuaValue value,
Class clazz)
Coerce a LuaValue value to a specified java class
|
static LuaUserdata |
LuajavaLib.createProxy(Class clazz,
LuaValue lobj) |
static Varargs |
JsePlatform.luaMain(LuaValue mainChunk,
String[] args)
Simple wrapper for invoking a lua function with command line arguments.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
void |
JavaBuilder.loadConstant(LuaValue value) |
Copyright © 2020. All rights reserved.