A B C D E F G H I J K L M N O P R S T U V W Y Z _

A

add(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
add(double) - Method in class org.luaj.vm2.LuaDouble
 
add(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
add(double) - Method in class org.luaj.vm2.LuaInteger
 
add(int) - Method in class org.luaj.vm2.LuaInteger
 
add(LuaValue) - Method in class org.luaj.vm2.LuaString
 
add(double) - Method in class org.luaj.vm2.LuaString
 
add(int) - Method in class org.luaj.vm2.LuaString
 
ADD - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__add" for use as metatag
add(LuaValue) - Method in class org.luaj.vm2.LuaValue
Add: Perform numeric add operation with another value including metatag processing.
add(double) - Method in class org.luaj.vm2.LuaValue
Add: Perform numeric add operation with another value of double type with metatag processing
add(int) - Method in class org.luaj.vm2.LuaValue
Add: Perform numeric add operation with another value of int type with metatag processing
and(LuaValue) - Method in class org.luaj.vm2.LuaValue
Perform boolean and with another operand, based on lua rules for boolean evaluation.
append(byte) - Method in class org.luaj.vm2.Buffer
Append a single byte to the buffer.
append(LuaValue) - Method in class org.luaj.vm2.Buffer
Append a LuaValue to the buffer.
append(LuaString) - Method in class org.luaj.vm2.Buffer
Append a LuaString to the buffer.
append(String) - Method in class org.luaj.vm2.Buffer
Append a Java String to the buffer.
arg(int) - Method in class org.luaj.vm2.LuaValue
 
arg(int) - Method in class org.luaj.vm2.TailcallVarargs
 
arg(int) - Method in class org.luaj.vm2.Varargs
Get the n-th argument value (1-based).
arg1() - Method in class org.luaj.vm2.LuaValue
 
arg1() - Method in class org.luaj.vm2.TailcallVarargs
 
arg1() - Method in class org.luaj.vm2.Varargs
Get the first argument in the list.
argcheck(boolean, int, String) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaValue when a user-supplied assertion passes, or throw an error.
argerror(String) - Method in class org.luaj.vm2.LuaValue
Throw a LuaError indicating an invalid argument was supplied to a function
argerror(int, String) - Static method in class org.luaj.vm2.LuaValue
Throw a LuaError indicating an invalid argument was supplied to a function
aritherror() - Method in class org.luaj.vm2.LuaValue
Throw a LuaError based on an arithmetic error such as add, or pow, typically due to an invalid operand type
aritherror(String) - Method in class org.luaj.vm2.LuaValue
Throw a LuaError based on an arithmetic error such as add, or pow, typically due to an invalid operand type
arithmt(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Perform metatag processing for arithmetic operations.
arithmtwith(LuaValue, double) - Method in class org.luaj.vm2.LuaValue
Perform metatag processing for arithmetic operations when the left-hand-side is a number.
array - Variable in class org.luaj.vm2.LuaTable
the array values
assert_(boolean, String) - Static method in class org.luaj.vm2.LuaValue
Assert a condition is true, or throw a LuaError if not

B

baselib - Variable in class org.luaj.vm2.Globals
The BaseLib instance loaded into this Globals
BITRK - Static variable in class org.luaj.vm2.Lua
this bit 1 means constant (0 means register)
booleanValue() - Method in class org.luaj.vm2.LuaBoolean
Return the boolean value for this boolean
Buffer - Class in org.luaj.vm2
String buffer for use in string library methods, optimized for production of StrValue instances.
Buffer() - Constructor for class org.luaj.vm2.Buffer
Create buffer with default capacity
Buffer(int) - Constructor for class org.luaj.vm2.Buffer
Create buffer with specified initial capacity
Buffer(LuaValue) - Constructor for class org.luaj.vm2.Buffer
Create buffer with specified initial value
buffer() - Method in class org.luaj.vm2.LuaValue
Convert the value to a Buffer for more efficient concatenation of multiple strings.
bytecodes - Variable in class org.luaj.vm2.LuaThread
 

C

call() - Method in class org.luaj.vm2.LuaClosure
 
call(LuaValue) - Method in class org.luaj.vm2.LuaClosure
 
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaClosure
 
call(LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaClosure
 
CALL - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__call" for use as metatag
call() - Method in class org.luaj.vm2.LuaValue
Call this with 0 arguments, including metatag processing, and return only the first return value.
call(LuaValue) - Method in class org.luaj.vm2.LuaValue
Call this with 1 argument, including metatag processing, and return only the first return value.
call(String) - Method in class org.luaj.vm2.LuaValue
Convenience function which calls a luavalue with a single, string argument.
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Call this with 2 arguments, including metatag processing, and return only the first return value.
call(LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Call this with 3 arguments, including metatag processing, and return only the first return value.
callmt() - Method in class org.luaj.vm2.LuaValue
Get the metatag value for the CALL metatag, if it exists.
callstack - Variable in class org.luaj.vm2.LuaThread
Thread-local used by DebugLib to store debugging state.
cause - Variable in exception org.luaj.vm2.LuaError
 
changemode(boolean, boolean) - Method in class org.luaj.vm2.LuaTable
Change the mode of a table
changemode(boolean, boolean) - Method in class org.luaj.vm2.WeakTable
 
charAt(int) - Method in class org.luaj.vm2.LuaString
 
checkboolean() - Method in class org.luaj.vm2.LuaBoolean
 
checkboolean() - Method in class org.luaj.vm2.LuaValue
Check that the value is a LuaBoolean, or throw LuaError if not
checkboolean(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a boolean value, or throw an error if any other type.
checkclosure() - Method in class org.luaj.vm2.LuaClosure
 
checkclosure() - Method in class org.luaj.vm2.LuaValue
Check that the value is a LuaClosure , or throw LuaError if not
checkclosure(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a closure, or throw an error if any other type.
checkdouble() - Method in class org.luaj.vm2.LuaDouble
 
checkdouble() - Method in class org.luaj.vm2.LuaInteger
 
checkdouble() - Method in class org.luaj.vm2.LuaString
 
checkdouble() - Method in class org.luaj.vm2.LuaValue
Check that the value is numeric and return the value as a double, or throw LuaError if not numeric
checkdouble(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a double, or throw an error if it cannot be converted to one.
checkfunction() - Method in class org.luaj.vm2.LuaFunction
 
checkfunction() - Method in class org.luaj.vm2.LuaValue
Check that the value is a function , or throw LuaError if not
checkfunction(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a function, or throw an error if an incompatible type.
checkglobals() - Method in class org.luaj.vm2.Globals
Check that this object is a Globals object, and return it, otherwise throw an error.
checkglobals() - Method in class org.luaj.vm2.LuaValue
Check that the value is a Globals instance, or throw LuaError if not
checkint() - Method in class org.luaj.vm2.LuaDouble
 
checkint() - Method in class org.luaj.vm2.LuaInteger
 
checkint() - Method in class org.luaj.vm2.LuaString
 
checkint() - Method in class org.luaj.vm2.LuaValue
Check that the value is numeric, and convert and cast value to int, or throw LuaError if not numeric
checkint(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java int value, discarding any fractional part, or throw an error if not a number.
checkinteger() - Method in class org.luaj.vm2.LuaDouble
 
checkinteger() - Method in class org.luaj.vm2.LuaInteger
 
checkinteger() - Method in class org.luaj.vm2.LuaString
 
checkinteger() - Method in class org.luaj.vm2.LuaValue
Check that the value is numeric, and convert and cast value to int, or throw LuaError if not numeric
checkinteger(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java int value, or throw an error if not a number or is not representable by a java int.
checkjstring() - Method in class org.luaj.vm2.LuaDouble
 
checkjstring() - Method in class org.luaj.vm2.LuaInteger
 
checkjstring() - Method in class org.luaj.vm2.LuaString
 
checkjstring() - Method in class org.luaj.vm2.LuaValue
Convert this value to a Java String.
checkjstring(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java String if a string or number, or throw an error if any other type
checklong() - Method in class org.luaj.vm2.LuaDouble
 
checklong() - Method in class org.luaj.vm2.LuaInteger
 
checklong() - Method in class org.luaj.vm2.LuaString
 
checklong() - Method in class org.luaj.vm2.LuaValue
Check that the value is numeric, and convert and cast value to long, or throw LuaError if not numeric
checklong(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java long value, discarding any fractional part, or throw an error if not a number.
checkmetatag(LuaValue, String) - Method in class org.luaj.vm2.LuaValue
Get particular metatag, or throw LuaError if it doesn't exist
checknotnil() - Method in class org.luaj.vm2.LuaNil
 
checknotnil() - Method in class org.luaj.vm2.LuaValue
Check that this is not the value NIL, or throw LuaError if it is
checknotnil(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaValue if it is not nil, or throw an error if it is nil.
checknumber() - Method in class org.luaj.vm2.LuaDouble
 
checknumber() - Method in class org.luaj.vm2.LuaNumber
 
checknumber(String) - Method in class org.luaj.vm2.LuaNumber
 
checknumber() - Method in class org.luaj.vm2.LuaString
 
checknumber(String) - Method in class org.luaj.vm2.LuaString
 
checknumber() - Method in class org.luaj.vm2.LuaValue
Check that the value is numeric, and return as a LuaNumber if so, or throw LuaError
checknumber(String) - Method in class org.luaj.vm2.LuaValue
Check that the value is numeric, and return as a LuaNumber if so, or throw LuaError
checknumber(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaNumber, or throw an error if not a number or string that can be converted to a number.
checkstring() - Method in class org.luaj.vm2.LuaDouble
 
checkstring() - Method in class org.luaj.vm2.LuaInteger
 
checkstring() - Method in class org.luaj.vm2.LuaString
 
checkstring() - Method in class org.luaj.vm2.LuaValue
Check that this is a lua string, or throw LuaError if it is not.
checkstring(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaString if a string or number, or throw an error if any other type
checktable() - Method in class org.luaj.vm2.LuaTable
 
checktable() - Method in class org.luaj.vm2.LuaValue
Check that this is a LuaTable, or throw LuaError if it is not
checktable(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaTable if a lua table, or throw an error if any other type.
checkthread() - Method in class org.luaj.vm2.LuaThread
 
checkthread() - Method in class org.luaj.vm2.LuaValue
Check that this is a LuaThread, or throw LuaError if it is not
checkthread(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaThread if a lua thread, or throw an error if any other type.
checkuserdata() - Method in class org.luaj.vm2.LuaUserdata
 
checkuserdata(Class) - Method in class org.luaj.vm2.LuaUserdata
 
checkuserdata() - Method in class org.luaj.vm2.LuaValue
Check that this is a LuaUserdata, or throw LuaError if it is not
checkuserdata(Class) - Method in class org.luaj.vm2.LuaValue
Check that this is a LuaUserdata, or throw LuaError if it is not
checkuserdata(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java Object if a userdata, or throw an error if any other type.
checkuserdata(int, Class) - Method in class org.luaj.vm2.Varargs
Return argument i as a java Object if it is a userdata whose instance Class c or a subclass, or throw an error if any other type.
checkvalue(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaValue if it exists, or throw an error.
chunkid(String) - Static method in class org.luaj.vm2.Lua
 
classnamestub() - Method in class org.luaj.vm2.LuaFunction
Return the last part of the class name, to be used as a function name in tojstring and elsewhere.
close() - Method in class org.luaj.vm2.UpValue
Close this upvalue so it is no longer on the stack
code - Variable in class org.luaj.vm2.Prototype
 
compareerror(String) - Method in class org.luaj.vm2.LuaValue
Throw a LuaError based on a comparison error such as greater-than or less-than, typically due to an invalid operand type
compareerror(LuaValue) - Method in class org.luaj.vm2.LuaValue
Throw a LuaError based on a comparison error such as greater-than or less-than, typically due to an invalid operand type
comparemt(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Perform metatag processing for comparison operations.
compile(InputStream, String) - Static method in class org.luaj.vm2.compiler.LuaC
Compile a prototype or load as a binary chunk
compiler - Variable in class org.luaj.vm2.Globals
The installed compiler.
compiler - Static variable in class org.luaj.vm2.LoadState
Compiler instance, if installed
concat(LuaValue) - Method in class org.luaj.vm2.LuaNumber
 
concat(Buffer) - Method in class org.luaj.vm2.LuaNumber
 
concat(LuaValue) - Method in class org.luaj.vm2.LuaString
 
concat(Buffer) - Method in class org.luaj.vm2.LuaString
 
concat(LuaString, int, int) - Method in class org.luaj.vm2.LuaTable
Concatenate the contents of a table efficiently, using Buffer
CONCAT - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__concat" for use as metatag
concat(LuaValue) - Method in class org.luaj.vm2.LuaValue
Concatenate another value onto this value and return the result using rules of lua string concatenation including metatag processing.
concat(Buffer) - Method in class org.luaj.vm2.LuaValue
Concatenate a Buffer onto this value and return the result using rules of lua string concatenation including metatag processing.
concatmt(LuaValue) - Method in class org.luaj.vm2.LuaValue
Perform metatag processing for concatenation operations.
concatTo(LuaValue) - Method in class org.luaj.vm2.Buffer
Concatenate this buffer onto a LuaValue
concatTo(LuaString) - Method in class org.luaj.vm2.Buffer
Concatenate this buffer onto a LuaString
concatTo(LuaNumber) - Method in class org.luaj.vm2.Buffer
Concatenate this buffer onto a LuaNumber
concatTo(LuaNumber) - Method in class org.luaj.vm2.LuaNumber
 
concatTo(LuaString) - Method in class org.luaj.vm2.LuaNumber
 
concatTo(LuaNumber) - Method in class org.luaj.vm2.LuaString
 
concatTo(LuaString) - Method in class org.luaj.vm2.LuaString
 
concatTo(LuaValue) - Method in class org.luaj.vm2.LuaValue
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.
concatTo(LuaNumber) - Method in class org.luaj.vm2.LuaValue
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.
concatTo(LuaString) - Method in class org.luaj.vm2.LuaValue
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.
copyInto(int, byte[], int, int) - Method in class org.luaj.vm2.LuaString
Copy the bytes of the string into the given byte array.
coroutine_count - Static variable in class org.luaj.vm2.LuaThread
 

D

ddiv(double, double) - Static method in class org.luaj.vm2.LuaDouble
Divide two double numbers according to lua math, and return a LuaValue result.
ddiv_d(double, double) - Static method in class org.luaj.vm2.LuaDouble
Divide two double numbers according to lua math, and return a double result.
debugGlobals() - Static method in class org.luaj.vm2.lib.jme.JmePlatform
Create standard globals including the debug library.
debuglib - Variable in class org.luaj.vm2.Globals
The DebugLib instance loaded into this Globals, or null if debugging is not enabled
decodeAsUtf8(byte[], int, int) - Static method in class org.luaj.vm2.LuaString
Convert to Java String interpreting as utf8 characters.
div(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
div(double) - Method in class org.luaj.vm2.LuaDouble
 
div(int) - Method in class org.luaj.vm2.LuaDouble
 
div(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
div(double) - Method in class org.luaj.vm2.LuaInteger
 
div(int) - Method in class org.luaj.vm2.LuaInteger
 
div(LuaValue) - Method in class org.luaj.vm2.LuaString
 
div(double) - Method in class org.luaj.vm2.LuaString
 
div(int) - Method in class org.luaj.vm2.LuaString
 
DIV - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__div" for use as metatag
div(LuaValue) - Method in class org.luaj.vm2.LuaValue
Divide: Perform numeric divide operation by another value of unknown type, including metatag processing.
div(double) - Method in class org.luaj.vm2.LuaValue
Divide: Perform numeric divide operation by another value of double type without metatag processing
div(int) - Method in class org.luaj.vm2.LuaValue
Divide: Perform numeric divide operation by another value of int type without metatag processing
divInto(double) - Method in class org.luaj.vm2.LuaDouble
 
divInto(double) - Method in class org.luaj.vm2.LuaInteger
 
divInto(double) - Method in class org.luaj.vm2.LuaString
 
divInto(double) - Method in class org.luaj.vm2.LuaValue
Reverse-divide: Perform numeric divide operation into another value with metatag processing
dmod(double, double) - Static method in class org.luaj.vm2.LuaDouble
Take modulo double numbers according to lua math, and return a LuaValue result.
dmod_d(double, double) - Static method in class org.luaj.vm2.LuaDouble
Take modulo for double numbers according to lua math, and return a double result.

E

EMPTYSTRING - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value ""
encodeToUtf8(char[], byte[], int) - Static method in class org.luaj.vm2.LuaString
Encode the given Java string as UTF-8 bytes, writing the result to bytes starting at offset.
endpc - Variable in class org.luaj.vm2.LocVars
The instruction offset when the variable goes out of scope
ENV - Static variable in class org.luaj.vm2.LuaValue
The variable name of the environment.
eq(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
eq(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
eq(LuaValue) - Method in class org.luaj.vm2.LuaString
 
eq(LuaValue) - Method in class org.luaj.vm2.LuaTable
 
eq(LuaValue) - Method in class org.luaj.vm2.LuaUserdata
 
EQ - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__eq" for use as metatag
eq(LuaValue) - Method in class org.luaj.vm2.LuaValue
Equals: Perform equality comparison with another value including metatag processing using EQ.
eq_b(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
eq_b(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
eq_b(LuaValue) - Method in class org.luaj.vm2.LuaString
 
eq_b(LuaValue) - Method in class org.luaj.vm2.LuaTable
 
eq_b(LuaValue) - Method in class org.luaj.vm2.LuaUserdata
 
eq_b(LuaValue) - Method in class org.luaj.vm2.LuaValue
Equals: Perform equality comparison with another value including metatag processing using EQ, and return java boolean
eqmt(LuaValue) - Method in class org.luaj.vm2.LuaUserdata
 
eqmtcall(LuaValue, LuaValue, LuaValue, LuaValue) - Static method in class org.luaj.vm2.LuaValue
Perform equality testing metatag processing
equals(Object) - Method in class org.luaj.vm2.LuaDouble
 
equals(Object) - Method in class org.luaj.vm2.LuaInteger
 
equals(Object) - Method in class org.luaj.vm2.LuaNil
 
equals(Object) - Method in class org.luaj.vm2.LuaString
 
equals(LuaString, int, LuaString, int, int) - Static method in class org.luaj.vm2.LuaString
 
equals(byte[], int, byte[], int, int) - Static method in class org.luaj.vm2.LuaString
 
equals(Object) - Method in class org.luaj.vm2.LuaUserdata
 
equals(Object) - Method in class org.luaj.vm2.LuaValue
 
error(String) - Static method in class org.luaj.vm2.LuaValue
Throw a LuaError with a particular message
errorfunc - Variable in class org.luaj.vm2.Globals
The current error handler for this Globals
eval() - Method in class org.luaj.vm2.TailcallVarargs
 
eval() - Method in class org.luaj.vm2.Varargs
Evaluate any pending tail call and return result.
execute(LuaValue[], Varargs) - Method in class org.luaj.vm2.LuaClosure
 

F

FALSE - Static variable in class org.luaj.vm2.LuaValue
LuaBoolean constant corresponding to lua false
fileline - Variable in exception org.luaj.vm2.LuaError
 
FINDER - Variable in class org.luaj.vm2.Globals
The installed ResourceFinder for looking files by name.
function - Variable in class org.luaj.vm2.LuaThread.State
 

G

GC_INTERVAL - Static variable in class org.luaj.vm2.LuaThread
Interval to check for LuaThread dereferencing.
get(LuaValue) - Method in class org.luaj.vm2.LuaString
 
get(int) - Method in class org.luaj.vm2.LuaTable
 
get(LuaValue) - Method in class org.luaj.vm2.LuaTable
 
get(LuaValue) - Method in class org.luaj.vm2.LuaUserdata
 
get(LuaValue) - Method in class org.luaj.vm2.LuaValue
Get a value in a table including metatag processing using INDEX.
get(int) - Method in class org.luaj.vm2.LuaValue
Get a value in a table including metatag processing using INDEX.
get(String) - Method in class org.luaj.vm2.LuaValue
Get a value in a table including metatag processing using INDEX.
GET_OPCODE(int) - Static method in class org.luaj.vm2.Lua
 
GETARG_A(int) - Static method in class org.luaj.vm2.Lua
 
GETARG_Ax(int) - Static method in class org.luaj.vm2.Lua
 
GETARG_B(int) - Static method in class org.luaj.vm2.Lua
 
GETARG_Bx(int) - Static method in class org.luaj.vm2.Lua
 
GETARG_C(int) - Static method in class org.luaj.vm2.Lua
 
GETARG_sBx(int) - Static method in class org.luaj.vm2.Lua
 
getArrayLength() - Method in class org.luaj.vm2.LuaTable
Get the length of the array part of the table.
getArrayLength() - Method in class org.luaj.vm2.WeakTable
 
getBMode(int) - Static method in class org.luaj.vm2.Lua
 
getCause() - Method in exception org.luaj.vm2.LuaError
Get the cause, if any.
getCMode(int) - Static method in class org.luaj.vm2.Lua
 
getHashLength() - Method in class org.luaj.vm2.LuaTable
Get the length of the hash part of the table.
getHashLength() - Method in class org.luaj.vm2.WeakTable
 
getlocalname(int, int) - Method in class org.luaj.vm2.Prototype
Get the name of a local variable.
getMessage() - Method in exception org.luaj.vm2.LuaError
 
getmetatable() - Method in class org.luaj.vm2.LuaBoolean
 
getmetatable() - Method in class org.luaj.vm2.LuaClosure
 
getmetatable() - Method in class org.luaj.vm2.LuaFunction
 
getmetatable() - Method in class org.luaj.vm2.LuaNil
 
getmetatable() - Method in class org.luaj.vm2.LuaNumber
 
getmetatable() - Method in class org.luaj.vm2.LuaString
 
getmetatable() - Method in class org.luaj.vm2.LuaTable
 
getmetatable() - Method in class org.luaj.vm2.LuaThread
 
getmetatable() - Method in class org.luaj.vm2.LuaUserdata
 
getmetatable() - Method in class org.luaj.vm2.LuaValue
Get the metatable for this LuaValue
getOpMode(int) - Static method in class org.luaj.vm2.Lua
 
getSourceName(String) - Static method in class org.luaj.vm2.LoadState
Construct a source name from a supplied chunk name
getStatus() - Method in class org.luaj.vm2.LuaThread
 
gettable(LuaValue, LuaValue) - Static method in class org.luaj.vm2.LuaValue
get value from metatable operations, or NIL if not defined by metatables
getUpvalue(int) - Method in class org.luaj.vm2.LuaClosure
 
getValue() - Method in class org.luaj.vm2.UpValue
Get the value of the upvalue
Globals - Class in org.luaj.vm2
Global environment used by luaj.
Globals() - Constructor for class org.luaj.vm2.Globals
 
globals - Variable in class org.luaj.vm2.LuaThread
 
gt(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
gt(double) - Method in class org.luaj.vm2.LuaDouble
 
gt(int) - Method in class org.luaj.vm2.LuaDouble
 
gt(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
gt(double) - Method in class org.luaj.vm2.LuaInteger
 
gt(int) - Method in class org.luaj.vm2.LuaInteger
 
gt(LuaValue) - Method in class org.luaj.vm2.LuaString
 
gt(LuaValue) - Method in class org.luaj.vm2.LuaValue
Greater than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning LuaValue.
gt(double) - Method in class org.luaj.vm2.LuaValue
Greater than: Perform numeric comparison with another value of double type, including metatag processing, and returning LuaValue.
gt(int) - Method in class org.luaj.vm2.LuaValue
Greater than: Perform numeric comparison with another value of int type, including metatag processing, and returning LuaValue.
gt_b(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
gt_b(int) - Method in class org.luaj.vm2.LuaDouble
 
gt_b(double) - Method in class org.luaj.vm2.LuaDouble
 
gt_b(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
gt_b(int) - Method in class org.luaj.vm2.LuaInteger
 
gt_b(double) - Method in class org.luaj.vm2.LuaInteger
 
gt_b(LuaValue) - Method in class org.luaj.vm2.LuaString
 
gt_b(int) - Method in class org.luaj.vm2.LuaString
 
gt_b(double) - Method in class org.luaj.vm2.LuaString
 
gt_b(LuaValue) - Method in class org.luaj.vm2.LuaValue
Greater than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.
gt_b(int) - Method in class org.luaj.vm2.LuaValue
Greater than: Perform numeric comparison with another value of int type, including metatag processing, and returning java boolean.
gt_b(double) - Method in class org.luaj.vm2.LuaValue
Greater than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.
gteq(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
gteq(double) - Method in class org.luaj.vm2.LuaDouble
 
gteq(int) - Method in class org.luaj.vm2.LuaDouble
 
gteq(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
gteq(double) - Method in class org.luaj.vm2.LuaInteger
 
gteq(int) - Method in class org.luaj.vm2.LuaInteger
 
gteq(LuaValue) - Method in class org.luaj.vm2.LuaString
 
gteq(LuaValue) - Method in class org.luaj.vm2.LuaValue
Greater than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning LuaValue.
gteq(double) - Method in class org.luaj.vm2.LuaValue
Greater than or equals: Perform numeric comparison with another value of double type, including metatag processing, and returning LuaValue.
gteq(int) - Method in class org.luaj.vm2.LuaValue
Greater than or equals: Perform numeric comparison with another value of int type, including metatag processing, and returning LuaValue.
gteq_b(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
gteq_b(int) - Method in class org.luaj.vm2.LuaDouble
 
gteq_b(double) - Method in class org.luaj.vm2.LuaDouble
 
gteq_b(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
gteq_b(int) - Method in class org.luaj.vm2.LuaInteger
 
gteq_b(double) - Method in class org.luaj.vm2.LuaInteger
 
gteq_b(LuaValue) - Method in class org.luaj.vm2.LuaString
 
gteq_b(int) - Method in class org.luaj.vm2.LuaString
 
gteq_b(double) - Method in class org.luaj.vm2.LuaString
 
gteq_b(LuaValue) - Method in class org.luaj.vm2.LuaValue
Greater than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.
gteq_b(int) - Method in class org.luaj.vm2.LuaValue
Greater than or equals: Perform numeric comparison with another value of int type, including metatag processing, and returning java boolean.
gteq_b(double) - Method in class org.luaj.vm2.LuaValue
Greater than or equals: Perform numeric comparison with another value of double type, including metatag processing, and returning java boolean.

H

hashClearSlot(int) - Method in class org.luaj.vm2.LuaTable
Clear a particular slot in the table
hashCode() - Method in class org.luaj.vm2.LuaDouble
 
hashCode() - Method in class org.luaj.vm2.LuaInteger
 
hashCode() - Method in class org.luaj.vm2.LuaString
 
hashCode() - Method in class org.luaj.vm2.LuaUserdata
 
hashEntries - Variable in class org.luaj.vm2.LuaTable
the number of hash entries
hashFindSlot(LuaValue) - Method in class org.luaj.vm2.LuaTable
Find the hashtable slot to use
hashFindSlot(LuaValue) - Method in class org.luaj.vm2.WeakTable
 
hashget(LuaValue) - Method in class org.luaj.vm2.LuaTable
 
hashget(LuaValue) - Method in class org.luaj.vm2.WeakTable
Get the hash value for a key key the key to look up
hashKeys - Variable in class org.luaj.vm2.LuaTable
the hash keys
hashset(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaTable
Set a hashtable value
hashValues - Variable in class org.luaj.vm2.LuaTable
the hash values
hookcall - Variable in class org.luaj.vm2.LuaThread
 
hookcount - Variable in class org.luaj.vm2.LuaThread
 
hookfunc - Variable in class org.luaj.vm2.LuaThread
 
hookline - Variable in class org.luaj.vm2.LuaThread
 
hookrtrn - Variable in class org.luaj.vm2.LuaThread
 

I

iABC - Static variable in class org.luaj.vm2.Lua
 
iABx - Static variable in class org.luaj.vm2.Lua
 
iAsBx - Static variable in class org.luaj.vm2.Lua
 
iAx - Static variable in class org.luaj.vm2.Lua
 
idx - Variable in class org.luaj.vm2.Upvaldesc
 
illegal(String, String) - Method in class org.luaj.vm2.LuaValue
Throw a LuaError indicating an illegal operation occurred, typically involved in managing weak references
INDEX - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__index" for use as metatag
INDEXK(int) - Static method in class org.luaj.vm2.Lua
gets the index of the constant
indexOf(byte, int) - Method in class org.luaj.vm2.LuaString
Find the index of a byte starting at a point in this string
indexOf(LuaString, int) - Method in class org.luaj.vm2.LuaString
Find the index of a string starting at a point in this string
indexOfAny(LuaString) - Method in class org.luaj.vm2.LuaString
Java version of strpbrk - find index of any byte that in an accept string.
inext(LuaValue) - Method in class org.luaj.vm2.LuaTable
Get the next element after a particular key in the contiguous array part of a table
inext(LuaValue) - Method in class org.luaj.vm2.LuaValue
Find the next integer-key,value pair if this is a table, return NIL if there are no more, or throw a LuaError if not a table.
inhook - Variable in class org.luaj.vm2.LuaThread
 
initupvalue1(LuaValue) - Method in class org.luaj.vm2.LuaValue
Hook for implementations such as LuaJC to load the environment of the main chunk into the first upvalue location.
insert(int, LuaValue) - Method in class org.luaj.vm2.LuaTable
Insert an element at a position in a list-table
instack - Variable in class org.luaj.vm2.Upvaldesc
 
install() - Static method in class org.luaj.vm2.compiler.LuaC
Install the compiler so that LoadState will first try to use it when handed bytes that are not already a compiled lua chunk.
instance - Static variable in class org.luaj.vm2.compiler.LuaC
 
invoke(Varargs) - Method in class org.luaj.vm2.LuaClosure
 
invoke() - Method in class org.luaj.vm2.LuaValue
Call this with 0 arguments, including metatag processing, and retain all return values in a Varargs.
invoke(Varargs) - Method in class org.luaj.vm2.LuaValue
Call this with variable arguments, including metatag processing, and retain all return values in a Varargs.
invoke(LuaValue, Varargs) - Method in class org.luaj.vm2.LuaValue
Call this with variable arguments, including metatag processing, and retain all return values in a Varargs.
invoke(LuaValue, LuaValue, Varargs) - Method in class org.luaj.vm2.LuaValue
Call this with variable arguments, including metatag processing, and retain all return values in a Varargs.
invoke(LuaValue[]) - Method in class org.luaj.vm2.LuaValue
Call this with variable arguments, including metatag processing, and retain all return values in a Varargs.
invoke(LuaValue[], Varargs) - Method in class org.luaj.vm2.LuaValue
Call this with variable arguments, including metatag processing, and retain all return values in a Varargs.
invokemethod(String) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 0 arguments, including metatag processing, and retain all return values in a Varargs.
invokemethod(LuaValue) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 0 arguments, including metatag processing, and retain all return values in a Varargs.
invokemethod(String, Varargs) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 1 argument, including metatag processing, and retain all return values in a Varargs.
invokemethod(LuaValue, Varargs) - Method in class org.luaj.vm2.LuaValue
Call named method on this with variable arguments, including metatag processing, and retain all return values in a Varargs.
invokemethod(String, LuaValue[]) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 1 argument, including metatag processing, and retain all return values in a Varargs.
invokemethod(LuaValue, LuaValue[]) - Method in class org.luaj.vm2.LuaValue
Call named method on this with variable arguments, including metatag processing, and retain all return values in a Varargs.
is - Variable in class org.luaj.vm2.LoadState
input stream from which we are loading
is_vararg - Variable in class org.luaj.vm2.Prototype
 
isboolean() - Method in class org.luaj.vm2.LuaBoolean
 
isboolean() - Method in class org.luaj.vm2.LuaValue
Check if this is a boolean
isclosure() - Method in class org.luaj.vm2.LuaClosure
 
isclosure() - Method in class org.luaj.vm2.LuaValue
Check if this is a function that is a closure, meaning interprets lua bytecode for its execution
isfunction() - Method in class org.luaj.vm2.LuaFunction
 
isfunction() - Method in class org.luaj.vm2.LuaValue
Check if this is a function
isfunction(int) - Method in class org.luaj.vm2.Varargs
Tests if argument i is a function.
isint() - Method in class org.luaj.vm2.LuaInteger
 
isint() - Method in class org.luaj.vm2.LuaString
 
isint() - Method in class org.luaj.vm2.LuaValue
Check if this is a number and is representable by java int without rounding or truncation
isinttype() - Method in class org.luaj.vm2.LuaInteger
 
isinttype() - Method in class org.luaj.vm2.LuaValue
Check if this is a LuaInteger
ISK(int) - Static method in class org.luaj.vm2.Lua
test whether value is a constant
islong() - Method in class org.luaj.vm2.LuaDouble
 
islong() - Method in class org.luaj.vm2.LuaInteger
 
islong() - Method in class org.luaj.vm2.LuaString
 
islong() - Method in class org.luaj.vm2.LuaValue
Check if this is a number and is representable by java long without rounding or truncation
isMainThread() - Method in class org.luaj.vm2.LuaThread
 
isnil() - Method in class org.luaj.vm2.LuaNil
 
isnil() - Method in class org.luaj.vm2.LuaValue
Check if this is nil
isnil(int) - Method in class org.luaj.vm2.Varargs
Tests if argument i is nil.
isnoneornil(int) - Method in class org.luaj.vm2.Varargs
Return true if there is no argument or nil at argument i.
isnumber() - Method in class org.luaj.vm2.LuaDouble
 
isnumber() - Method in class org.luaj.vm2.LuaNumber
 
isnumber() - Method in class org.luaj.vm2.LuaString
 
isnumber() - Method in class org.luaj.vm2.LuaValue
Check if this is a number
isnumber(int) - Method in class org.luaj.vm2.Varargs
Tests if argument i is a number.
isstring() - Method in class org.luaj.vm2.LuaDouble
 
isstring() - Method in class org.luaj.vm2.LuaInteger
 
isstring() - Method in class org.luaj.vm2.LuaNumber
 
isstring() - Method in class org.luaj.vm2.LuaString
 
isstring() - Method in class org.luaj.vm2.LuaValue
Check if this is a string
isstring(int) - Method in class org.luaj.vm2.Varargs
Tests if argument i is a string.
istable() - Method in class org.luaj.vm2.LuaTable
 
istable() - Method in class org.luaj.vm2.LuaValue
Check if this is a table
istable(int) - Method in class org.luaj.vm2.Varargs
Tests if argument i is a table.
isTailcall() - Method in class org.luaj.vm2.TailcallVarargs
 
isTailcall() - Method in class org.luaj.vm2.Varargs
Return true if this is a TailcallVarargs
isthread() - Method in class org.luaj.vm2.LuaThread
 
isthread() - Method in class org.luaj.vm2.LuaValue
Check if this is a thread
isthread(int) - Method in class org.luaj.vm2.Varargs
Tests if argument i is a thread.
isuserdata() - Method in class org.luaj.vm2.LuaUserdata
 
isuserdata(Class) - Method in class org.luaj.vm2.LuaUserdata
 
isuserdata() - Method in class org.luaj.vm2.LuaValue
Check if this is a userdata
isuserdata(Class) - Method in class org.luaj.vm2.LuaValue
Check if this is a userdata of type c
isuserdata(int) - Method in class org.luaj.vm2.Varargs
Tests if argument i is a userdata.
isvalidkey() - Method in class org.luaj.vm2.LuaDouble
 
isvalidkey() - Method in class org.luaj.vm2.LuaNil
 
isvalidkey() - Method in class org.luaj.vm2.LuaValue
Return true if this is a valid key in a table index operation.
isValidUtf8() - Method in class org.luaj.vm2.LuaString
Check that a byte sequence is valid UTF-8
isvalue(int) - Method in class org.luaj.vm2.Varargs
Tests if a value exists at argument i.
isweaknil() - Method in class org.luaj.vm2.LuaValue
Test if this is a weak reference and its value no longer is referenced.

J

JmeIoLib - Class in org.luaj.vm2.lib.jme
Subclass of IoLib and therefore LibFunction which implements the lua standard io library for the JSE platform.
JmeIoLib() - Constructor for class org.luaj.vm2.lib.jme.JmeIoLib
 
JmePlatform - Class in org.luaj.vm2.lib.jme
The JmePlatform class is a convenience class to standardize how globals tables are initialized for the JME platform.
JmePlatform() - Constructor for class org.luaj.vm2.lib.jme.JmePlatform
 
JSTR_NAN - Static variable in class org.luaj.vm2.LuaDouble
Constant String representation for NaN (not a number), "nan"
JSTR_NEGINF - Static variable in class org.luaj.vm2.LuaDouble
Constant String representation for negative infinity, "-inf"
JSTR_POSINF - Static variable in class org.luaj.vm2.LuaDouble
Constant String representation for positive infinity, "inf"

K

k - Variable in class org.luaj.vm2.Prototype
 
keyCount() - Method in class org.luaj.vm2.LuaTable
This may be deprecated in a future release.
keys() - Method in class org.luaj.vm2.LuaTable
This may be deprecated in a future release.

L

lastIndexOf(LuaString) - Method in class org.luaj.vm2.LuaString
Find the last index of a string in this string
lastline - Variable in class org.luaj.vm2.LuaThread
 
lastlinedefined - Variable in class org.luaj.vm2.Prototype
 
LE - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__le" for use as metatag
len() - Method in class org.luaj.vm2.LuaString
 
len() - Method in class org.luaj.vm2.LuaTable
 
LEN - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__len" for use as metatag
len() - Method in class org.luaj.vm2.LuaValue
Length operator: return lua length of object (#this) including metatag processing as java int
lenerror() - Method in class org.luaj.vm2.LuaValue
Throw a LuaError based on the len operator, typically due to an invalid operand type
length() - Method in class org.luaj.vm2.LuaString
 
length() - Method in class org.luaj.vm2.LuaTable
 
length() - Method in class org.luaj.vm2.LuaValue
Length operator: return lua length of object (#this) including metatag processing as java int
lengthAsUtf8(char[]) - Static method in class org.luaj.vm2.LuaString
Count the number of bytes required to encode the string as UTF-8.
level - Variable in exception org.luaj.vm2.LuaError
 
LFIELDS_PER_FLUSH - Static variable in class org.luaj.vm2.Lua
 
linedefined - Variable in class org.luaj.vm2.Prototype
 
lineinfo - Variable in class org.luaj.vm2.Prototype
 
listOf(LuaValue[]) - Static method in class org.luaj.vm2.LuaValue
Construct a LuaTable initialized with supplied array values.
listOf(LuaValue[], Varargs) - Static method in class org.luaj.vm2.LuaValue
Construct a LuaTable initialized with supplied array values.
load(InputStream, String, LuaValue) - Method in class org.luaj.vm2.compiler.LuaC
Load into a Closure or LuaFunction, with the supplied initial environment
load(Prototype, String, LuaValue) - Method in class org.luaj.vm2.compiler.LuaC
 
load(InputStream, String, String, LuaValue) - Static method in class org.luaj.vm2.LoadState
Load lua in either binary or text form from an input stream.
load(InputStream, String, LuaValue) - Method in interface org.luaj.vm2.LoadState.LuaCompiler
Load into a Closure or LuaFunction from a Stream and initializes the environment
load(LuaValue) - Method in class org.luaj.vm2.LuaValue
Load a library instance by setting its environment to the calling object, and calling it, which should iniitalize the library instance and install itself into this instance.
load(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Load a library instance by setting its environment to env and calling it, which should iniitalize the library instance and install itself into this instance.
loadBinaryChunk(int, InputStream, String) - Static method in class org.luaj.vm2.LoadState
Load lua thought to be a binary chunk from its first byte from an input stream.
loadFile(String) - Method in class org.luaj.vm2.Globals
Convenience function for loading a file.
loadFunction(LuaString) - Method in class org.luaj.vm2.LoadState
Load a function prototype from the input stream
loadHeader() - Method in class org.luaj.vm2.LoadState
Load the lua chunk header values.
LoadState - Class in org.luaj.vm2
Class to manage loading of Prototype instances.
LoadState.LuaCompiler - Interface in org.luaj.vm2
Interface for the compiler, if it is installed.
LocVars - Class in org.luaj.vm2
Data class to hold debug information relating to local variables for a Prototype
LocVars(LuaString, int, int) - Constructor for class org.luaj.vm2.LocVars
Construct a LocVars instance.
locvars - Variable in class org.luaj.vm2.Prototype
 
longBitsToLuaNumber(long) - Static method in class org.luaj.vm2.LoadState
Convert bits in a long value to a LuaValue.
lt(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
lt(double) - Method in class org.luaj.vm2.LuaDouble
 
lt(int) - Method in class org.luaj.vm2.LuaDouble
 
lt(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
lt(double) - Method in class org.luaj.vm2.LuaInteger
 
lt(int) - Method in class org.luaj.vm2.LuaInteger
 
lt(LuaValue) - Method in class org.luaj.vm2.LuaString
 
LT - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__lt" for use as metatag
lt(LuaValue) - Method in class org.luaj.vm2.LuaValue
Less than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning LuaValue.
lt(double) - Method in class org.luaj.vm2.LuaValue
Less than: Perform numeric comparison with another value of double type, including metatag processing, and returning LuaValue.
lt(int) - Method in class org.luaj.vm2.LuaValue
Less than: Perform numeric comparison with another value of int type, including metatag processing, and returning LuaValue.
lt_b(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
lt_b(int) - Method in class org.luaj.vm2.LuaDouble
 
lt_b(double) - Method in class org.luaj.vm2.LuaDouble
 
lt_b(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
lt_b(int) - Method in class org.luaj.vm2.LuaInteger
 
lt_b(double) - Method in class org.luaj.vm2.LuaInteger
 
lt_b(LuaValue) - Method in class org.luaj.vm2.LuaString
 
lt_b(int) - Method in class org.luaj.vm2.LuaString
 
lt_b(double) - Method in class org.luaj.vm2.LuaString
 
lt_b(LuaValue) - Method in class org.luaj.vm2.LuaValue
Less than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.
lt_b(int) - Method in class org.luaj.vm2.LuaValue
Less than: Perform numeric comparison with another value of int type, including metatag processing, and returning java boolean.
lt_b(double) - Method in class org.luaj.vm2.LuaValue
Less than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.
lteq(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
lteq(double) - Method in class org.luaj.vm2.LuaDouble
 
lteq(int) - Method in class org.luaj.vm2.LuaDouble
 
lteq(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
lteq(double) - Method in class org.luaj.vm2.LuaInteger
 
lteq(int) - Method in class org.luaj.vm2.LuaInteger
 
lteq(LuaValue) - Method in class org.luaj.vm2.LuaString
 
lteq(LuaValue) - Method in class org.luaj.vm2.LuaValue
Less than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning LuaValue.
lteq(double) - Method in class org.luaj.vm2.LuaValue
Less than or equals: Perform numeric comparison with another value of double type, including metatag processing, and returning LuaValue.
lteq(int) - Method in class org.luaj.vm2.LuaValue
Less than or equals: Perform numeric comparison with another value of int type, including metatag processing, and returning LuaValue.
lteq_b(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
lteq_b(int) - Method in class org.luaj.vm2.LuaDouble
 
lteq_b(double) - Method in class org.luaj.vm2.LuaDouble
 
lteq_b(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
lteq_b(int) - Method in class org.luaj.vm2.LuaInteger
 
lteq_b(double) - Method in class org.luaj.vm2.LuaInteger
 
lteq_b(LuaValue) - Method in class org.luaj.vm2.LuaString
 
lteq_b(int) - Method in class org.luaj.vm2.LuaString
 
lteq_b(double) - Method in class org.luaj.vm2.LuaString
 
lteq_b(LuaValue) - Method in class org.luaj.vm2.LuaValue
Less than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.
lteq_b(int) - Method in class org.luaj.vm2.LuaValue
Less than or equals: Perform numeric comparison with another value of int type, including metatag processing, and returning java boolean.
lteq_b(double) - Method in class org.luaj.vm2.LuaValue
Less than or equals: Perform numeric comparison with another value of double type, including metatag processing, and returning java boolean.
Lua - Class in org.luaj.vm2
Constants for lua limits and opcodes.
Lua() - Constructor for class org.luaj.vm2.Lua
 
LUA_MULTRET - Static variable in class org.luaj.vm2.Lua
use return values from previous op
lua_resume(LuaThread, Varargs) - Method in class org.luaj.vm2.LuaThread.State
 
LUA_SIGNATURE - Static variable in class org.luaj.vm2.LoadState
Signature byte indicating the file is a compiled binary chunk
LUA_TBOOLEAN - Static variable in class org.luaj.vm2.LoadState
 
LUA_TFUNCTION - Static variable in class org.luaj.vm2.LoadState
 
LUA_TINT - Static variable in class org.luaj.vm2.LoadState
 
LUA_TLIGHTUSERDATA - Static variable in class org.luaj.vm2.LoadState
 
LUA_TNIL - Static variable in class org.luaj.vm2.LoadState
 
LUA_TNONE - Static variable in class org.luaj.vm2.LoadState
 
LUA_TNUMBER - Static variable in class org.luaj.vm2.LoadState
 
LUA_TSTRING - Static variable in class org.luaj.vm2.LoadState
 
LUA_TTABLE - Static variable in class org.luaj.vm2.LoadState
 
LUA_TTHREAD - Static variable in class org.luaj.vm2.LoadState
 
LUA_TUSERDATA - Static variable in class org.luaj.vm2.LoadState
 
LUA_TVALUE - Static variable in class org.luaj.vm2.LoadState
 
lua_yield(Varargs) - Method in class org.luaj.vm2.LuaThread.State
 
LuaBoolean - Class in org.luaj.vm2
Extension of LuaValue which can hold a Java boolean as its value.
luaByte(int) - Method in class org.luaj.vm2.LuaString
 
LuaC - Class in org.luaj.vm2.compiler
Compiler for Lua.
LuaC() - Constructor for class org.luaj.vm2.compiler.LuaC
 
LUAC_FORMAT - Static variable in class org.luaj.vm2.LoadState
for header of binary files -- this is the official format
LUAC_HEADERSIZE - Static variable in class org.luaj.vm2.LoadState
size of header of binary files
LUAC_TAIL - Static variable in class org.luaj.vm2.LoadState
Data to catch conversion errors
LUAC_VERSION - Static variable in class org.luaj.vm2.LoadState
for header of binary files -- this is Lua 5.2
LuaClosure - Class in org.luaj.vm2
Extension of LuaFunction which executes lua bytecode.
LuaClosure(Prototype, LuaValue) - Constructor for class org.luaj.vm2.LuaClosure
Create a closure around a Prototype with a specific environment.
LuaDouble - Class in org.luaj.vm2
Extension of LuaNumber which can hold a Java double as its value.
LuaError - Exception in org.luaj.vm2
RuntimeException that is thrown and caught in response to a lua error.
LuaError(Throwable) - Constructor for exception org.luaj.vm2.LuaError
Construct LuaError when a program exception occurs.
LuaError(String) - Constructor for exception org.luaj.vm2.LuaError
Construct a LuaError with a specific message.
LuaError(String, int) - Constructor for exception org.luaj.vm2.LuaError
Construct a LuaError with a message, and level to draw line number information from.
LuaFunction - Class in org.luaj.vm2
Base class for functions implemented in Java.
LuaFunction() - Constructor for class org.luaj.vm2.LuaFunction
 
LuaInteger - Class in org.luaj.vm2
Extension of LuaNumber which can hold a Java int as its value.
LuaNil - Class in org.luaj.vm2
Class to encapsulate behavior of the singleton instance nil
LuaNumber - Class in org.luaj.vm2
Base class for representing numbers as lua values directly.
LuaNumber() - Constructor for class org.luaj.vm2.LuaNumber
 
luaP_opmodes - Static variable in class org.luaj.vm2.Lua
 
LuaString - Class in org.luaj.vm2
Subclass of LuaValue for representing lua strings.
LuaTable - Class in org.luaj.vm2
Subclass of LuaValue for representing lua tables.
LuaTable() - Constructor for class org.luaj.vm2.LuaTable
Construct empty table
LuaTable(int, int) - Constructor for class org.luaj.vm2.LuaTable
Construct table with preset capacity.
LuaTable(LuaValue[], LuaValue[], Varargs) - Constructor for class org.luaj.vm2.LuaTable
Construct table with named and unnamed parts.
LuaTable(Varargs) - Constructor for class org.luaj.vm2.LuaTable
Construct table of unnamed elements.
LuaTable(Varargs, int) - Constructor for class org.luaj.vm2.LuaTable
Construct table of unnamed elements.
LuaThread - Class in org.luaj.vm2
Subclass of LuaValue that implements a lua coroutine thread using Java Threads.
LuaThread(Globals) - Constructor for class org.luaj.vm2.LuaThread
Private constructor for main thread only
LuaThread(Globals, LuaValue) - Constructor for class org.luaj.vm2.LuaThread
Create a LuaThread around a function and environment
LuaThread.State - Class in org.luaj.vm2
 
LuaUserdata - Class in org.luaj.vm2
 
LuaUserdata(Object) - Constructor for class org.luaj.vm2.LuaUserdata
 
LuaUserdata(Object, LuaValue) - Constructor for class org.luaj.vm2.LuaUserdata
 
LuaValue - Class in org.luaj.vm2
Base class for all concrete lua type values.
LuaValue() - Constructor for class org.luaj.vm2.LuaValue
 

M

m_bytes - Variable in class org.luaj.vm2.LuaString
The bytes for the string
m_instance - Variable in class org.luaj.vm2.LuaUserdata
 
m_length - Variable in class org.luaj.vm2.LuaString
The number of bytes that comprise this string
m_metatable - Variable in class org.luaj.vm2.LuaTable
metatable for this table, or null
m_metatable - Variable in class org.luaj.vm2.LuaUserdata
 
m_offset - Variable in class org.luaj.vm2.LuaString
The offset into the byte array, 0 means start at the first byte
makeroom(int, int) - Method in class org.luaj.vm2.Buffer
Ensure there is enough room before and after the bytes.
MASK_A - Static variable in class org.luaj.vm2.Lua
 
MASK_B - Static variable in class org.luaj.vm2.Lua
 
MASK_Bx - Static variable in class org.luaj.vm2.Lua
 
MASK_C - Static variable in class org.luaj.vm2.Lua
 
MASK_NOT_A - Static variable in class org.luaj.vm2.Lua
 
MASK_NOT_B - Static variable in class org.luaj.vm2.Lua
 
MASK_NOT_Bx - Static variable in class org.luaj.vm2.Lua
 
MASK_NOT_C - Static variable in class org.luaj.vm2.Lua
 
MASK_NOT_OP - Static variable in class org.luaj.vm2.Lua
 
MASK_OP - Static variable in class org.luaj.vm2.Lua
 
MAX_CALLSTACK - Static variable in class org.luaj.vm2.LuaThread
 
MAX_OP - Static variable in class org.luaj.vm2.Lua
 
MAXARG_A - Static variable in class org.luaj.vm2.Lua
 
MAXARG_Ax - Static variable in class org.luaj.vm2.Lua
 
MAXARG_B - Static variable in class org.luaj.vm2.Lua
 
MAXARG_Bx - Static variable in class org.luaj.vm2.Lua
 
MAXARG_C - Static variable in class org.luaj.vm2.Lua
 
MAXARG_sBx - Static variable in class org.luaj.vm2.Lua
 
MAXINDEXRK - Static variable in class org.luaj.vm2.Lua
 
MAXSTACK - Static variable in class org.luaj.vm2.compiler.LuaC
 
maxstacksize - Variable in class org.luaj.vm2.Prototype
 
METATABLE - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__metatable" for use as metatag
metatag(LuaValue) - Method in class org.luaj.vm2.LuaValue
Get particular metatag, or return LuaValue.NIL if it doesn't exist
method(String) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 0 arguments, including metatag processing, and return only the first return value.
method(LuaValue) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 0 arguments, including metatag processing, and return only the first return value.
method(String, LuaValue) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 1 argument, including metatag processing, and return only the first return value.
method(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 1 argument, including metatag processing, and return only the first return value.
method(String, LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 2 arguments, including metatag processing, and return only the first return value.
method(LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Call named method on this with 2 arguments, including metatag processing, and return only the first return value.
MINUSONE - Static variable in class org.luaj.vm2.LuaValue
LuaValue number constant equal to -1
mod(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
mod(double) - Method in class org.luaj.vm2.LuaDouble
 
mod(int) - Method in class org.luaj.vm2.LuaDouble
 
mod(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
mod(double) - Method in class org.luaj.vm2.LuaInteger
 
mod(int) - Method in class org.luaj.vm2.LuaInteger
 
mod(LuaValue) - Method in class org.luaj.vm2.LuaString
 
mod(double) - Method in class org.luaj.vm2.LuaString
 
mod(int) - Method in class org.luaj.vm2.LuaString
 
MOD - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__mod" for use as metatag
mod(LuaValue) - Method in class org.luaj.vm2.LuaValue
Modulo: Perform numeric modulo operation with another value of unknown type, including metatag processing.
mod(double) - Method in class org.luaj.vm2.LuaValue
Modulo: Perform numeric modulo operation with another value of double type without metatag processing
mod(int) - Method in class org.luaj.vm2.LuaValue
Modulo: Perform numeric modulo operation with another value of int type without metatag processing
MODE - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__mode" for use as metatag
modFrom(double) - Method in class org.luaj.vm2.LuaDouble
 
modFrom(double) - Method in class org.luaj.vm2.LuaInteger
 
modFrom(double) - Method in class org.luaj.vm2.LuaString
 
modFrom(double) - Method in class org.luaj.vm2.LuaValue
Reverse-modulo: Perform numeric modulo operation from another value with metatag processing
mul(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
mul(double) - Method in class org.luaj.vm2.LuaDouble
 
mul(int) - Method in class org.luaj.vm2.LuaDouble
 
mul(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
mul(double) - Method in class org.luaj.vm2.LuaInteger
 
mul(int) - Method in class org.luaj.vm2.LuaInteger
 
mul(LuaValue) - Method in class org.luaj.vm2.LuaString
 
mul(double) - Method in class org.luaj.vm2.LuaString
 
mul(int) - Method in class org.luaj.vm2.LuaString
 
MUL - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__mul" for use as metatag
mul(LuaValue) - Method in class org.luaj.vm2.LuaValue
Multiply: Perform numeric multiply operation with another value of unknown type, including metatag processing.
mul(double) - Method in class org.luaj.vm2.LuaValue
Multiply: Perform numeric multiply operation with another value of double type with metatag processing
mul(int) - Method in class org.luaj.vm2.LuaValue
Multiply: Perform numeric multiply operation with another value of int type with metatag processing

N

name() - Method in class org.luaj.vm2.LuaClosure
 
name() - Method in class org.luaj.vm2.LuaFunction
Return a human-readable name for this function.
name - Variable in class org.luaj.vm2.Upvaldesc
 
NAN - Static variable in class org.luaj.vm2.LuaDouble
Constant LuaDouble representing NaN (not a number)
narg() - Method in class org.luaj.vm2.LuaValue
 
narg() - Method in class org.luaj.vm2.TailcallVarargs
 
narg() - Method in class org.luaj.vm2.Varargs
Get the number of arguments, or 0 if there are none.
nCcalls - Variable in class org.luaj.vm2.compiler.LuaC
 
neg() - Method in class org.luaj.vm2.LuaDouble
 
neg() - Method in class org.luaj.vm2.LuaInteger
 
neg() - Method in class org.luaj.vm2.LuaString
 
neg() - Method in class org.luaj.vm2.LuaValue
Unary minus: return negative value (-this) as defined by lua unary minus operator
NEGINF - Static variable in class org.luaj.vm2.LuaDouble
Constant LuaDouble representing negative infinity
neq(LuaValue) - Method in class org.luaj.vm2.LuaValue
Notquals: Perform inequality comparison with another value including metatag processing using EQ.
neq_b(LuaValue) - Method in class org.luaj.vm2.LuaValue
Notquals: Perform inequality comparison with another value including metatag processing using EQ.
NEWINDEX - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__newindex" for use as metatag
newTString(byte[], int, int) - Method in class org.luaj.vm2.compiler.LuaC
 
next(LuaValue) - Method in class org.luaj.vm2.LuaTable
Get the next element after a particular key in the table
next(LuaValue) - Method in class org.luaj.vm2.LuaValue
Find the next key,value pair if this is a table, return NIL if there are no more, or throw a LuaError if not a table.
next(LuaValue) - Method in class org.luaj.vm2.WeakTable
Get the next element after a particular key in the table
NIL - Static variable in class org.luaj.vm2.LuaValue
LuaValue constant corresponding to lua nil
NILS - Static variable in class org.luaj.vm2.LuaValue
Array of NIL values to optimize filling stacks using System.arraycopy().
NO_REG - Static variable in class org.luaj.vm2.Lua
invalid register that fits in 8 bits
NONE - Static variable in class org.luaj.vm2.LuaValue
LuaValue constant corresponding to a Varargs list of no values
not() - Method in class org.luaj.vm2.LuaBoolean
 
not() - Method in class org.luaj.vm2.LuaNil
 
not() - Method in class org.luaj.vm2.LuaValue
Unary not: return inverse boolean value (~this) as defined by lua not operator
NOVALS - Static variable in class org.luaj.vm2.LuaValue
LuaValue array constant with no values
NUM_OPCODES - Static variable in class org.luaj.vm2.Lua
 
NUMBER_FORMAT_FLOATS_OR_DOUBLES - Static variable in class org.luaj.vm2.LoadState
format corresponding to non-number-patched lua, all numbers are floats or doubles
NUMBER_FORMAT_INTS_ONLY - Static variable in class org.luaj.vm2.LoadState
format corresponding to non-number-patched lua, all numbers are ints
NUMBER_FORMAT_NUM_PATCH_INT32 - Static variable in class org.luaj.vm2.LoadState
format corresponding to number-patched lua, all numbers are 32-bit (4 byte) ints
numparams - Variable in class org.luaj.vm2.Prototype
 

O

ONE - Static variable in class org.luaj.vm2.LuaValue
LuaValue number constant equal to 1
onInvoke(Varargs) - Method in class org.luaj.vm2.LuaClosure
 
onInvoke(Varargs) - Method in class org.luaj.vm2.LuaValue
Callback used during tail call processing to invoke the function once.
OP_ADD - Static variable in class org.luaj.vm2.Lua
 
OP_AND - Static variable in class org.luaj.vm2.Lua
 
OP_CALL - Static variable in class org.luaj.vm2.Lua
 
OP_CLOSURE - Static variable in class org.luaj.vm2.Lua
 
OP_CONCAT - Static variable in class org.luaj.vm2.Lua
 
OP_DIV - Static variable in class org.luaj.vm2.Lua
 
OP_EQ - Static variable in class org.luaj.vm2.Lua
 
OP_EXTRAARG - Static variable in class org.luaj.vm2.Lua
 
OP_FORLOOP - Static variable in class org.luaj.vm2.Lua
 
OP_FORPREP - Static variable in class org.luaj.vm2.Lua
 
OP_GE - Static variable in class org.luaj.vm2.Lua
 
OP_GETTABLE - Static variable in class org.luaj.vm2.Lua
 
OP_GETTABUP - Static variable in class org.luaj.vm2.Lua
 
OP_GETUPVAL - Static variable in class org.luaj.vm2.Lua
 
OP_GT - Static variable in class org.luaj.vm2.Lua
 
OP_JMP - Static variable in class org.luaj.vm2.Lua
 
OP_LE - Static variable in class org.luaj.vm2.Lua
 
OP_LEN - Static variable in class org.luaj.vm2.Lua
 
OP_LOADBOOL - Static variable in class org.luaj.vm2.Lua
 
OP_LOADK - Static variable in class org.luaj.vm2.Lua
 
OP_LOADKX - Static variable in class org.luaj.vm2.Lua
 
OP_LOADNIL - Static variable in class org.luaj.vm2.Lua
 
OP_LT - Static variable in class org.luaj.vm2.Lua
 
OP_MOD - Static variable in class org.luaj.vm2.Lua
 
OP_MOVE - Static variable in class org.luaj.vm2.Lua
 
OP_MUL - Static variable in class org.luaj.vm2.Lua
 
OP_NEQ - Static variable in class org.luaj.vm2.Lua
 
OP_NEWTABLE - Static variable in class org.luaj.vm2.Lua
 
OP_NOT - Static variable in class org.luaj.vm2.Lua
 
OP_OR - Static variable in class org.luaj.vm2.Lua
 
OP_POW - Static variable in class org.luaj.vm2.Lua
 
OP_RETURN - Static variable in class org.luaj.vm2.Lua
 
OP_SELF - Static variable in class org.luaj.vm2.Lua
 
OP_SETLIST - Static variable in class org.luaj.vm2.Lua
 
OP_SETTABLE - Static variable in class org.luaj.vm2.Lua
 
OP_SETTABUP - Static variable in class org.luaj.vm2.Lua
 
OP_SETUPVAL - Static variable in class org.luaj.vm2.Lua
 
OP_SUB - Static variable in class org.luaj.vm2.Lua
 
OP_TAILCALL - Static variable in class org.luaj.vm2.Lua
 
OP_TEST - Static variable in class org.luaj.vm2.Lua
 
OP_TESTSET - Static variable in class org.luaj.vm2.Lua
 
OP_TFORCALL - Static variable in class org.luaj.vm2.Lua
 
OP_TFORLOOP - Static variable in class org.luaj.vm2.Lua
 
OP_UNM - Static variable in class org.luaj.vm2.Lua
 
OP_VARARG - Static variable in class org.luaj.vm2.Lua
 
OpArgK - Static variable in class org.luaj.vm2.Lua
 
OpArgN - Static variable in class org.luaj.vm2.Lua
 
OpArgR - Static variable in class org.luaj.vm2.Lua
 
OpArgU - Static variable in class org.luaj.vm2.Lua
 
openFile(String, boolean, boolean, boolean, boolean) - Method in class org.luaj.vm2.lib.jme.JmeIoLib
 
openProgram(String, String) - Method in class org.luaj.vm2.lib.jme.JmeIoLib
 
OPNAMES - Static variable in class org.luaj.vm2.Print
 
optboolean(boolean) - Method in class org.luaj.vm2.LuaBoolean
 
optboolean(boolean) - Method in class org.luaj.vm2.LuaNil
 
optboolean(boolean) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a boolean and return its boolean value
optboolean(int, boolean) - Method in class org.luaj.vm2.Varargs
Return argument i as a boolean value, defval if nil, or throw a LuaError if any other type.
optclosure(LuaClosure) - Method in class org.luaj.vm2.LuaClosure
 
optclosure(LuaClosure) - Method in class org.luaj.vm2.LuaNil
 
optclosure(LuaClosure) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a closure and return as LuaClosure
optclosure(int, LuaClosure) - Method in class org.luaj.vm2.Varargs
Return argument i as a closure, defval if nil, or throw a LuaError if any other type.
optdouble(double) - Method in class org.luaj.vm2.LuaDouble
 
optdouble(double) - Method in class org.luaj.vm2.LuaInteger
 
optdouble(double) - Method in class org.luaj.vm2.LuaNil
 
optdouble(double) - Method in class org.luaj.vm2.LuaString
 
optdouble(double) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a number or string convertible to number and return as double
optdouble(int, double) - Method in class org.luaj.vm2.Varargs
Return argument i as a double, defval if nil, or throw a LuaError if it cannot be converted to one.
optfunction(LuaFunction) - Method in class org.luaj.vm2.LuaFunction
 
optfunction(LuaFunction) - Method in class org.luaj.vm2.LuaNil
 
optfunction(LuaFunction) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a function and return as LuaFunction
optfunction(int, LuaFunction) - Method in class org.luaj.vm2.Varargs
Return argument i as a function, defval if nil, or throw a LuaError if an incompatible type.
optint(int) - Method in class org.luaj.vm2.LuaDouble
 
optint(int) - Method in class org.luaj.vm2.LuaInteger
 
optint(int) - Method in class org.luaj.vm2.LuaNil
 
optint(int) - Method in class org.luaj.vm2.LuaString
 
optint(int) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a number or string convertible to number and return as int
optint(int, int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java int value, discarding any fractional part, defval if nil, or throw a LuaError if not a number.
optinteger(LuaInteger) - Method in class org.luaj.vm2.LuaDouble
 
optinteger(LuaInteger) - Method in class org.luaj.vm2.LuaInteger
 
optinteger(LuaInteger) - Method in class org.luaj.vm2.LuaNil
 
optinteger(LuaInteger) - Method in class org.luaj.vm2.LuaString
 
optinteger(LuaInteger) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a number or string convertible to number and return as LuaInteger
optinteger(int, LuaInteger) - Method in class org.luaj.vm2.Varargs
Return argument i as a java int value, defval if nil, or throw a LuaError if not a number or is not representable by a java int.
optjstring(String) - Method in class org.luaj.vm2.LuaDouble
 
optjstring(String) - Method in class org.luaj.vm2.LuaInteger
 
optjstring(String) - Method in class org.luaj.vm2.LuaNil
 
optjstring(String) - Method in class org.luaj.vm2.LuaString
 
optjstring(String) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a string or number and return as Java String
optjstring(int, String) - Method in class org.luaj.vm2.Varargs
Return argument i as a java String if a string or number, defval if nil, or throw a LuaError if any other type
optlong(long) - Method in class org.luaj.vm2.LuaDouble
 
optlong(long) - Method in class org.luaj.vm2.LuaInteger
 
optlong(long) - Method in class org.luaj.vm2.LuaNil
 
optlong(long) - Method in class org.luaj.vm2.LuaString
 
optlong(long) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a number or string convertible to number and return as long
optlong(int, long) - Method in class org.luaj.vm2.Varargs
Return argument i as a java long value, discarding any fractional part, defval if nil, or throw a LuaError if not a number.
optnumber(LuaNumber) - Method in class org.luaj.vm2.LuaDouble
 
optnumber(LuaNumber) - Method in class org.luaj.vm2.LuaNil
 
optnumber(LuaNumber) - Method in class org.luaj.vm2.LuaNumber
 
optnumber(LuaNumber) - Method in class org.luaj.vm2.LuaString
 
optnumber(LuaNumber) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a number or string convertible to number and return as LuaNumber
optnumber(int, LuaNumber) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaNumber, defval if nil, or throw a LuaError if not a number or string that can be converted to a number.
optstring(LuaString) - Method in class org.luaj.vm2.LuaDouble
 
optstring(LuaString) - Method in class org.luaj.vm2.LuaInteger
 
optstring(LuaString) - Method in class org.luaj.vm2.LuaNil
 
optstring(LuaString) - Method in class org.luaj.vm2.LuaString
 
optstring(LuaString) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a string or number and return as LuaString
optstring(int, LuaString) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaString if a string or number, defval if nil, or throw a LuaError if any other type
opttable(LuaTable) - Method in class org.luaj.vm2.LuaNil
 
opttable(LuaTable) - Method in class org.luaj.vm2.LuaTable
 
opttable(LuaTable) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a table and return as LuaTable
opttable(int, LuaTable) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaTable if a lua table, defval if nil, or throw a LuaError if any other type.
optthread(LuaThread) - Method in class org.luaj.vm2.LuaNil
 
optthread(LuaThread) - Method in class org.luaj.vm2.LuaThread
 
optthread(LuaThread) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a thread and return as LuaThread
optthread(int, LuaThread) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaThread if a lua thread, defval if nil, or throw a LuaError if any other type.
optuserdata(Object) - Method in class org.luaj.vm2.LuaNil
 
optuserdata(Class, Object) - Method in class org.luaj.vm2.LuaNil
 
optuserdata(Object) - Method in class org.luaj.vm2.LuaUserdata
 
optuserdata(Class, Object) - Method in class org.luaj.vm2.LuaUserdata
 
optuserdata(Object) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a userdata and return the Object instance
optuserdata(Class, Object) - Method in class org.luaj.vm2.LuaValue
Check that optional argument is a userdata whose instance is of a type and return the Object instance
optuserdata(int, Object) - Method in class org.luaj.vm2.Varargs
Return argument i as a java Object if a userdata, defval if nil, or throw a LuaError if any other type.
optuserdata(int, Class, Object) - Method in class org.luaj.vm2.Varargs
Return argument i as a java Object if it is a userdata whose instance Class c or a subclass, defval if nil, or throw a LuaError if any other type.
optvalue(LuaValue) - Method in class org.luaj.vm2.LuaNil
 
optvalue(LuaValue) - Method in class org.luaj.vm2.LuaValue
Perform argument check that this is not nil or none.
optvalue(int, LuaValue) - Method in class org.luaj.vm2.Varargs
Return argument i as a LuaValue if it exists, or defval.
or(LuaValue) - Method in class org.luaj.vm2.LuaValue
Perform boolean or with another operand, based on lua rules for boolean evaluation.
org.luaj.vm2 - package org.luaj.vm2
 
org.luaj.vm2.compiler - package org.luaj.vm2.compiler
 
org.luaj.vm2.lib.jme - package org.luaj.vm2.lib.jme
 
OrphanedThread - Error in org.luaj.vm2
Error sublcass that indicates a lua thread that is no longer referenced has been detected.
OrphanedThread() - Constructor for error org.luaj.vm2.OrphanedThread
 

P

p - Variable in class org.luaj.vm2.LuaClosure
 
p - Variable in class org.luaj.vm2.Prototype
 
package_ - Variable in class org.luaj.vm2.Globals
The PackageLib instance loaded into this Globals
POS_A - Static variable in class org.luaj.vm2.Lua
 
POS_Ax - Static variable in class org.luaj.vm2.Lua
 
POS_B - Static variable in class org.luaj.vm2.Lua
 
POS_Bx - Static variable in class org.luaj.vm2.Lua
 
POS_C - Static variable in class org.luaj.vm2.Lua
 
POS_OP - Static variable in class org.luaj.vm2.Lua
 
POSINF - Static variable in class org.luaj.vm2.LuaDouble
Constant LuaDouble representing positive infinity
pow(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
pow(double) - Method in class org.luaj.vm2.LuaDouble
 
pow(int) - Method in class org.luaj.vm2.LuaDouble
 
pow(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
pow(double) - Method in class org.luaj.vm2.LuaInteger
 
pow(int) - Method in class org.luaj.vm2.LuaInteger
 
pow(LuaValue) - Method in class org.luaj.vm2.LuaString
 
pow(double) - Method in class org.luaj.vm2.LuaString
 
pow(int) - Method in class org.luaj.vm2.LuaString
 
POW - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__pow" for use as metatag
pow(LuaValue) - Method in class org.luaj.vm2.LuaValue
Raise to power: Raise this value to a power including metatag processing.
pow(double) - Method in class org.luaj.vm2.LuaValue
Raise to power: Raise this value to a power of double type with metatag processing
pow(int) - Method in class org.luaj.vm2.LuaValue
Raise to power: Raise this value to a power of int type with metatag processing
powWith(double) - Method in class org.luaj.vm2.LuaDouble
 
powWith(int) - Method in class org.luaj.vm2.LuaDouble
 
powWith(double) - Method in class org.luaj.vm2.LuaInteger
 
powWith(int) - Method in class org.luaj.vm2.LuaInteger
 
powWith(double) - Method in class org.luaj.vm2.LuaString
 
powWith(int) - Method in class org.luaj.vm2.LuaString
 
powWith(double) - Method in class org.luaj.vm2.LuaValue
Reverse-raise to power: Raise another value of double type to this power with metatag processing
powWith(int) - Method in class org.luaj.vm2.LuaValue
Reverse-raise to power: Raise another value of double type to this power with metatag processing
prepend(LuaString) - Method in class org.luaj.vm2.Buffer
Concatenate bytes from a LuaString onto the front of this buffer
presize(int) - Method in class org.luaj.vm2.LuaTable
 
presize(int, int) - Method in class org.luaj.vm2.LuaTable
 
presize(int) - Method in class org.luaj.vm2.LuaValue
Preallocate the array part of a table to be a certain size,
presize(int) - Method in class org.luaj.vm2.WeakTable
 
presize(int, int) - Method in class org.luaj.vm2.WeakTable
Presize capacity of both array and hash parts.
Print - Class in org.luaj.vm2
Debug helper class to pretty-print lua bytecodes.
Print() - Constructor for class org.luaj.vm2.Print
 
print(Prototype) - Static method in class org.luaj.vm2.Print
 
printCode(Prototype) - Static method in class org.luaj.vm2.Print
Print the code in a prototype
printFunction(Prototype, boolean) - Static method in class org.luaj.vm2.Print
 
printOpCode(Prototype, int) - Static method in class org.luaj.vm2.Print
Print an opcode in a prototype
printOpCode(PrintStream, Prototype, int) - Static method in class org.luaj.vm2.Print
Print an opcode in a prototype
printState(LuaClosure, int, LuaValue[], int, Varargs) - Static method in class org.luaj.vm2.Print
Print the state of a LuaClosure that is being executed
Prototype - Class in org.luaj.vm2
Prototype representing compiled lua code.
Prototype() - Constructor for class org.luaj.vm2.Prototype
 
Prototype(int) - Constructor for class org.luaj.vm2.Prototype
 
ps - Static variable in class org.luaj.vm2.Print
 
pushfstring(String) - Method in class org.luaj.vm2.compiler.LuaC
 

R

raweq(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
raweq(double) - Method in class org.luaj.vm2.LuaDouble
 
raweq(int) - Method in class org.luaj.vm2.LuaDouble
 
raweq(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
raweq(double) - Method in class org.luaj.vm2.LuaInteger
 
raweq(int) - Method in class org.luaj.vm2.LuaInteger
 
raweq(LuaValue) - Method in class org.luaj.vm2.LuaString
 
raweq(LuaString) - Method in class org.luaj.vm2.LuaString
 
raweq(LuaValue) - Method in class org.luaj.vm2.LuaUserdata
 
raweq(LuaUserdata) - Method in class org.luaj.vm2.LuaUserdata
 
raweq(LuaValue) - Method in class org.luaj.vm2.LuaValue
Equals: Perform direct equality comparison with another value without metatag processing.
raweq(LuaUserdata) - Method in class org.luaj.vm2.LuaValue
Equals: Perform direct equality comparison with a LuaUserdata value without metatag processing.
raweq(LuaString) - Method in class org.luaj.vm2.LuaValue
Equals: Perform direct equality comparison with a LuaString value without metatag processing.
raweq(double) - Method in class org.luaj.vm2.LuaValue
Equals: Perform direct equality comparison with a double value without metatag processing.
raweq(int) - Method in class org.luaj.vm2.LuaValue
Equals: Perform direct equality comparison with a int value without metatag processing.
rawget(int) - Method in class org.luaj.vm2.LuaTable
 
rawget(LuaValue) - Method in class org.luaj.vm2.LuaTable
 
rawget(LuaValue) - Method in class org.luaj.vm2.LuaValue
Get a value in a table without metatag processing.
rawget(int) - Method in class org.luaj.vm2.LuaValue
Get a value in a table without metatag processing.
rawget(String) - Method in class org.luaj.vm2.LuaValue
Get a value in a table without metatag processing.
rawget(int) - Method in class org.luaj.vm2.WeakTable
 
rawget(LuaValue) - Method in class org.luaj.vm2.WeakTable
 
rawlen() - Method in class org.luaj.vm2.LuaString
 
rawlen() - Method in class org.luaj.vm2.LuaTable
 
rawlen() - Method in class org.luaj.vm2.LuaValue
Get raw length of table or string without metatag processing.
rawset(int, LuaValue) - Method in class org.luaj.vm2.LuaTable
 
rawset(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaTable
caller must ensure key is not nil
rawset(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing.
rawset(int, LuaValue) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing.
rawset(int, String) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing.
rawset(String, LuaValue) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing.
rawset(String, double) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing.
rawset(String, int) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing.
rawset(String, String) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing.
rawset(int, LuaValue) - Method in class org.luaj.vm2.WeakTable
 
rawset(LuaValue, LuaValue) - Method in class org.luaj.vm2.WeakTable
 
rawsetlist(int, Varargs) - Method in class org.luaj.vm2.LuaValue
Set list values in a table without invoking metatag processing
remove(int) - Method in class org.luaj.vm2.LuaTable
Remove the element at a position in a list-table
resume(Varargs) - Method in class org.luaj.vm2.LuaThread
 
RKASK(int) - Static method in class org.luaj.vm2.Lua
code a constant index as a RK value
run() - Method in class org.luaj.vm2.LuaThread.State
 
running - Variable in class org.luaj.vm2.Globals
The currently running thread.

S

s_metatable - Static variable in class org.luaj.vm2.LuaBoolean
Shared static metatable for boolean values represented in lua.
s_metatable - Static variable in class org.luaj.vm2.LuaFunction
Shared static metatable for all functions and closures.
s_metatable - Static variable in class org.luaj.vm2.LuaNil
 
s_metatable - Static variable in class org.luaj.vm2.LuaNumber
Shared static metatable for all number values represented in lua.
s_metatable - Static variable in class org.luaj.vm2.LuaString
The singleton instance representing lua true
s_metatable - Static variable in class org.luaj.vm2.LuaThread
 
scannumber() - Method in class org.luaj.vm2.LuaString
Convert to a number in base 10, or base 16 if the string starts with '0x', or return Double.NaN if it cannot be converted to a number.
scannumber(int) - Method in class org.luaj.vm2.LuaString
Convert to a number in a base, or return Double.NaN if not a number.
set(int, LuaValue) - Method in class org.luaj.vm2.LuaTable
 
set(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaTable
caller must ensure key is not nil
set(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaUserdata
 
set(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing using NEWINDEX.
set(int, LuaValue) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing using NEWINDEX.
set(int, String) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing using NEWINDEX.
set(String, LuaValue) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing using NEWINDEX.
set(String, double) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing using NEWINDEX.
set(String, int) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing using NEWINDEX.
set(String, String) - Method in class org.luaj.vm2.LuaValue
Set a value in a table without metatag processing using NEWINDEX.
setmetatable(LuaValue) - Method in class org.luaj.vm2.LuaTable
 
setmetatable(LuaValue) - Method in class org.luaj.vm2.LuaUserdata
 
setmetatable(LuaValue) - Method in class org.luaj.vm2.LuaValue
Set the metatable for this LuaValue
settable(LuaValue, LuaValue, LuaValue) - Static method in class org.luaj.vm2.LuaValue
Perform field assignment including metatag processing.
setUpvalue(int, LuaValue) - Method in class org.luaj.vm2.LuaClosure
 
setvalue(LuaValue) - Method in class org.luaj.vm2.Buffer
Set buffer contents as a LuaValue
setValue(LuaValue) - Method in class org.luaj.vm2.UpValue
Set the value of the upvalue
shortsource() - Method in class org.luaj.vm2.Prototype
 
SIZE_A - Static variable in class org.luaj.vm2.Lua
 
SIZE_Ax - Static variable in class org.luaj.vm2.Lua
 
SIZE_B - Static variable in class org.luaj.vm2.Lua
 
SIZE_Bx - Static variable in class org.luaj.vm2.Lua
 
SIZE_C - Static variable in class org.luaj.vm2.Lua
 
SIZE_OP - Static variable in class org.luaj.vm2.Lua
 
sort(LuaValue) - Method in class org.luaj.vm2.LuaTable
Sort the table using a comparator.
sort(LuaValue) - Method in class org.luaj.vm2.WeakTable
 
source - Variable in class org.luaj.vm2.Prototype
 
SOURCE_BINARY_STRING - Static variable in class org.luaj.vm2.LoadState
Name for compiled chunks
standardGlobals() - Static method in class org.luaj.vm2.lib.jme.JmePlatform
Create a standard set of globals for JME including all the libraries.
startpc - Variable in class org.luaj.vm2.LocVars
The instruction offset when the variable comes into scope
state - Variable in class org.luaj.vm2.LuaThread
 
status - Variable in class org.luaj.vm2.LuaThread.State
 
STATUS_DEAD - Static variable in class org.luaj.vm2.LuaThread
 
STATUS_INITIAL - Static variable in class org.luaj.vm2.LuaThread
 
STATUS_NAMES - Static variable in class org.luaj.vm2.LuaThread
 
STATUS_NORMAL - Static variable in class org.luaj.vm2.LuaThread
 
STATUS_RUNNING - Static variable in class org.luaj.vm2.LuaThread
 
STATUS_SUSPENDED - Static variable in class org.luaj.vm2.LuaThread
 
STDERR - Variable in class org.luaj.vm2.Globals
The current default error stream.
STDIN - Variable in class org.luaj.vm2.Globals
The current default input stream.
STDOUT - Variable in class org.luaj.vm2.Globals
The current default output stream.
strcmp(LuaString) - Method in class org.luaj.vm2.LuaDouble
 
strcmp(LuaString) - Method in class org.luaj.vm2.LuaInteger
 
strcmp(LuaValue) - Method in class org.luaj.vm2.LuaString
 
strcmp(LuaString) - Method in class org.luaj.vm2.LuaString
 
strcmp(LuaValue) - Method in class org.luaj.vm2.LuaValue
Perform string comparison with another value of any type using string comparison based on byte values.
strcmp(LuaString) - Method in class org.luaj.vm2.LuaValue
Perform string comparison with another value known to be a LuaString using string comparison based on byte values.
strongkey() - Method in class org.luaj.vm2.LuaValue
Return the key part of this value if it is a weak table entry, or NIL if it was weak and is no longer referenced.
strongvalue() - Method in class org.luaj.vm2.LuaValue
Return this value as a strong reference, or NIL if it was weak and is no longer referenced.
strvalue() - Method in class org.luaj.vm2.LuaDouble
 
strvalue() - Method in class org.luaj.vm2.LuaFunction
 
strvalue() - Method in class org.luaj.vm2.LuaInteger
 
strvalue() - Method in class org.luaj.vm2.LuaString
 
strvalue() - Method in class org.luaj.vm2.LuaValue
Convert this value to a string if it is a LuaString or LuaNumber, or throw a LuaError if it is not
sub(LuaValue) - Method in class org.luaj.vm2.LuaDouble
 
sub(double) - Method in class org.luaj.vm2.LuaDouble
 
sub(int) - Method in class org.luaj.vm2.LuaDouble
 
sub(LuaValue) - Method in class org.luaj.vm2.LuaInteger
 
sub(double) - Method in class org.luaj.vm2.LuaInteger
 
sub(int) - Method in class org.luaj.vm2.LuaInteger
 
sub(LuaValue) - Method in class org.luaj.vm2.LuaString
 
sub(double) - Method in class org.luaj.vm2.LuaString
 
sub(int) - Method in class org.luaj.vm2.LuaString
 
SUB - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__sub" for use as metatag
sub(LuaValue) - Method in class org.luaj.vm2.LuaValue
Subtract: Perform numeric subtract operation with another value of unknown type, including metatag processing.
sub(double) - Method in class org.luaj.vm2.LuaValue
Subtract: Perform numeric subtract operation with another value of double type with metatag processing
sub(int) - Method in class org.luaj.vm2.LuaValue
Subtract: Perform numeric subtract operation with another value of int type with metatag processing
subargs(int) - Method in class org.luaj.vm2.LuaValue
Create a Varargs instance containing arguments starting at index start
subargs(int) - Method in class org.luaj.vm2.TailcallVarargs
 
subargs(int) - Method in class org.luaj.vm2.Varargs
Create a Varargs instance containing arguments starting at index start
subFrom(double) - Method in class org.luaj.vm2.LuaDouble
 
subFrom(double) - Method in class org.luaj.vm2.LuaInteger
 
subFrom(int) - Method in class org.luaj.vm2.LuaInteger
 
subFrom(double) - Method in class org.luaj.vm2.LuaString
 
subFrom(double) - Method in class org.luaj.vm2.LuaValue
Reverse-subtract: Perform numeric subtract operation from an int value with metatag processing
subFrom(int) - Method in class org.luaj.vm2.LuaValue
Reverse-subtract: Perform numeric subtract operation from a double value without metatag processing
substring(int, int) - Method in class org.luaj.vm2.LuaString
 

T

tableOf() - Static method in class org.luaj.vm2.LuaValue
Construct an empty LuaTable.
tableOf(Varargs, int) - Static method in class org.luaj.vm2.LuaValue
Construct a LuaTable initialized with supplied array values.
tableOf(int, int) - Static method in class org.luaj.vm2.LuaValue
Construct an empty LuaTable preallocated to hold array and hashed elements
tableOf(LuaValue[]) - Static method in class org.luaj.vm2.LuaValue
Construct a LuaTable initialized with supplied named values.
tableOf(LuaValue[], LuaValue[]) - Static method in class org.luaj.vm2.LuaValue
Construct a LuaTable initialized with supplied named values and sequential elements.
tableOf(LuaValue[], LuaValue[], Varargs) - Static method in class org.luaj.vm2.LuaValue
Construct a LuaTable initialized with supplied named values and sequential elements in an array part and as varargs.
tailcallOf(LuaValue, Varargs) - Static method in class org.luaj.vm2.LuaValue
Construct a TailcallVarargs around a function and arguments.
TailcallVarargs - Class in org.luaj.vm2
Subclass of Varargs that represents a lua tail call in a Java library function execution environment.
TailcallVarargs(LuaValue, Varargs) - Constructor for class org.luaj.vm2.TailcallVarargs
 
TailcallVarargs(LuaValue, LuaValue, Varargs) - Constructor for class org.luaj.vm2.TailcallVarargs
 
TBOOLEAN - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua booleans
testAMode(int) - Static method in class org.luaj.vm2.Lua
 
testfor_b(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaValue
Perform end-condition test in for-loop processing.
testTMode(int) - Static method in class org.luaj.vm2.Lua
 
TFUNCTION - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua functions
TINT - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua numbers that are ints, for compatibility with lua 5.1 number patch only
TLIGHTUSERDATA - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua light userdata, for compatibility with C-based lua only
tmpFile() - Method in class org.luaj.vm2.lib.jme.JmeIoLib
 
TNIL - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua nil
TNONE - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua values that have no type, for example weak table entries
TNUMBER - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua numbers
toboolean() - Method in class org.luaj.vm2.LuaBoolean
 
toboolean() - Method in class org.luaj.vm2.LuaNil
 
toboolean() - Method in class org.luaj.vm2.LuaValue
Convert to boolean false if LuaValue.NIL or LuaValue.FALSE, true if anything else
toboolean(int) - Method in class org.luaj.vm2.Varargs
Convert argument i to java boolean based on lua rules for boolean evaluation.
tobyte() - Method in class org.luaj.vm2.LuaDouble
 
tobyte() - Method in class org.luaj.vm2.LuaInteger
 
tobyte() - Method in class org.luaj.vm2.LuaString
 
tobyte() - Method in class org.luaj.vm2.LuaValue
Convert to byte if numeric, or 0 if not.
tobyte(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java byte value, discarding any fractional part and truncating, or 0 if not a number.
tochar() - Method in class org.luaj.vm2.LuaDouble
 
tochar() - Method in class org.luaj.vm2.LuaInteger
 
tochar() - Method in class org.luaj.vm2.LuaString
 
tochar() - Method in class org.luaj.vm2.LuaValue
Convert to char if numeric, or 0 if not.
tochar(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java char value, discarding any fractional part and truncating, or 0 if not a number.
todouble() - Method in class org.luaj.vm2.LuaDouble
 
todouble() - Method in class org.luaj.vm2.LuaInteger
 
todouble() - Method in class org.luaj.vm2.LuaString
 
todouble() - Method in class org.luaj.vm2.LuaValue
Convert to double if numeric, or 0 if not.
todouble(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java double value or 0 if not a number.
tofloat() - Method in class org.luaj.vm2.LuaDouble
 
tofloat() - Method in class org.luaj.vm2.LuaInteger
 
tofloat() - Method in class org.luaj.vm2.LuaString
 
tofloat() - Method in class org.luaj.vm2.LuaValue
Convert to float if numeric, or 0 if not.
tofloat(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java float value, discarding excess fractional part and truncating, or 0 if not a number.
toInputStream() - Method in class org.luaj.vm2.LuaString
Convert value to an input stream.
toint() - Method in class org.luaj.vm2.LuaDouble
 
toint() - Method in class org.luaj.vm2.LuaInteger
 
toint() - Method in class org.luaj.vm2.LuaString
 
toint() - Method in class org.luaj.vm2.LuaValue
Convert to int if numeric, or 0 if not.
toint(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java int value, discarding any fractional part and truncating, or 0 if not a number.
tojstring() - Method in class org.luaj.vm2.Buffer
Convert the buffer to a Java String
tojstring() - Method in class org.luaj.vm2.LocVars
 
tojstring() - Method in class org.luaj.vm2.LuaBoolean
 
tojstring() - Method in class org.luaj.vm2.LuaClosure
 
tojstring() - Method in class org.luaj.vm2.LuaDouble
 
tojstring() - Method in class org.luaj.vm2.LuaFunction
 
tojstring() - Method in class org.luaj.vm2.LuaInteger
 
tojstring() - Method in class org.luaj.vm2.LuaNil
 
tojstring() - Method in class org.luaj.vm2.LuaString
 
tojstring() - Method in class org.luaj.vm2.LuaUserdata
 
tojstring() - Method in class org.luaj.vm2.LuaValue
Convert to human readable String for any type.
tojstring() - Method in class org.luaj.vm2.UpValue
Convert this upvalue to a Java String
tojstring(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java String based on the type of the argument.
tojstring() - Method in class org.luaj.vm2.Varargs
Convert the list of varargs values to a human readable java String.
tolong() - Method in class org.luaj.vm2.LuaDouble
 
tolong() - Method in class org.luaj.vm2.LuaInteger
 
tolong() - Method in class org.luaj.vm2.LuaString
 
tolong() - Method in class org.luaj.vm2.LuaValue
Convert to long if numeric, or 0 if not.
tolong(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java long value, discarding any fractional part and truncating, or 0 if not a number.
tonumber() - Method in class org.luaj.vm2.LuaDouble
 
tonumber() - Method in class org.luaj.vm2.LuaNumber
 
tonumber() - Method in class org.luaj.vm2.LuaString
convert to a number using baee 10 or base 16 if it starts with '0x', or NIL if it can't be converted
tonumber(int) - Method in class org.luaj.vm2.LuaString
convert to a number using a supplied base, or NIL if it can't be converted
tonumber() - Method in class org.luaj.vm2.LuaValue
Conditionally convert to lua number without throwing errors.
toshort() - Method in class org.luaj.vm2.LuaDouble
 
toshort() - Method in class org.luaj.vm2.LuaInteger
 
toshort() - Method in class org.luaj.vm2.LuaString
 
toshort() - Method in class org.luaj.vm2.LuaValue
Convert to short if numeric, or 0 if not.
toshort(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java short value, discarding any fractional part and truncating, or 0 if not a number.
tostring() - Method in class org.luaj.vm2.Buffer
Convert the buffer to a LuaString
toString() - Method in class org.luaj.vm2.Buffer
Convert the buffer to a Java String
tostring() - Method in class org.luaj.vm2.LuaDouble
 
tostring() - Method in class org.luaj.vm2.LuaInteger
 
toString() - Method in class org.luaj.vm2.LuaNil
 
tostring() - Method in class org.luaj.vm2.LuaString
 
TOSTRING - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__tostring" for use as metatag
toString() - Method in class org.luaj.vm2.LuaValue
Convert the value to a human readable string using LuaValue.tojstring()
tostring() - Method in class org.luaj.vm2.LuaValue
Conditionally convert to lua string without throwing errors.
toString() - Method in class org.luaj.vm2.Prototype
 
toString() - Method in class org.luaj.vm2.Upvaldesc
 
toString() - Method in class org.luaj.vm2.UpValue
 
toString() - Method in class org.luaj.vm2.Varargs
Convert the value or values to a java String using Varargs.tojstring()
touserdata() - Method in class org.luaj.vm2.LuaUserdata
 
touserdata(Class) - Method in class org.luaj.vm2.LuaUserdata
 
touserdata() - Method in class org.luaj.vm2.LuaValue
Convert to userdata instance, or null.
touserdata(Class) - Method in class org.luaj.vm2.LuaValue
Convert to userdata instance if specific type, or null.
touserdata(int) - Method in class org.luaj.vm2.Varargs
Return argument i as a java Object if a userdata, or null.
touserdata(int, Class) - Method in class org.luaj.vm2.Varargs
Return argument i as a java Object if it is a userdata whose instance Class c or a subclass, or null.
traceback - Variable in exception org.luaj.vm2.LuaError
 
TRUE - Static variable in class org.luaj.vm2.LuaValue
LuaBoolean constant corresponding to lua true
TSTRING - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua strings
TTABLE - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua tables
TTHREAD - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua threads
TUSERDATA - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for lua userdatas
TVALUE - Static variable in class org.luaj.vm2.LuaValue
Type enumeration constant for unknown values, for compatibility with C-based lua only
type() - Method in class org.luaj.vm2.LuaBoolean
 
type() - Method in class org.luaj.vm2.LuaFunction
 
type() - Method in class org.luaj.vm2.LuaNil
 
type() - Method in class org.luaj.vm2.LuaNumber
 
type() - Method in class org.luaj.vm2.LuaString
 
type() - Method in class org.luaj.vm2.LuaTable
 
type() - Method in class org.luaj.vm2.LuaThread
 
type() - Method in class org.luaj.vm2.LuaUserdata
 
type() - Method in class org.luaj.vm2.LuaValue
Get the enumeration value for the type of this value.
type(int) - Method in class org.luaj.vm2.Varargs
Gets the type of argument i
TYPE_NAMES - Static variable in class org.luaj.vm2.LuaValue
String array constant containing names of each of the lua value types
typename() - Method in class org.luaj.vm2.LuaBoolean
 
typename() - Method in class org.luaj.vm2.LuaFunction
 
typename() - Method in class org.luaj.vm2.LuaNil
 
typename() - Method in class org.luaj.vm2.LuaNumber
 
typename() - Method in class org.luaj.vm2.LuaString
 
typename() - Method in class org.luaj.vm2.LuaTable
 
typename() - Method in class org.luaj.vm2.LuaThread
 
typename() - Method in class org.luaj.vm2.LuaUserdata
 
typename() - Method in class org.luaj.vm2.LuaValue
Get the String name of the type of this value.
typerror(String) - Method in class org.luaj.vm2.LuaValue
Throw a LuaError indicating an invalid type was supplied to a function

U

unimplemented(String) - Method in class org.luaj.vm2.LuaValue
Throw a LuaError indicating an operation is not implemented
UNM - Static variable in class org.luaj.vm2.LuaValue
LuaString constant with value "__unm" for use as metatag
unpack() - Method in class org.luaj.vm2.LuaTable
Unpack all the elements of this table
unpack(int) - Method in class org.luaj.vm2.LuaTable
Unpack all the elements of this table from element i
unpack(int, int) - Method in class org.luaj.vm2.LuaTable
Unpack the elements from i to j inclusive
Upvaldesc - Class in org.luaj.vm2
 
Upvaldesc(LuaString, boolean, int) - Constructor for class org.luaj.vm2.Upvaldesc
 
UpValue - Class in org.luaj.vm2
Upvalue used with Closure formulation
UpValue(LuaValue[], int) - Constructor for class org.luaj.vm2.UpValue
Create an upvalue relative to a stack
upValues - Variable in class org.luaj.vm2.LuaClosure
 
upvalues - Variable in class org.luaj.vm2.Prototype
 
userdata() - Method in class org.luaj.vm2.LuaUserdata
 
userdataOf(Object) - Static method in class org.luaj.vm2.LuaValue
Construct a LuaUserdata for an object.
userdataOf(Object, LuaValue) - Static method in class org.luaj.vm2.LuaValue
Construct a LuaUserdata for an object with a user supplied metatable.

V

v - Variable in class org.luaj.vm2.LuaBoolean
The value of the boolean
v - Variable in class org.luaj.vm2.LuaInteger
The value being held by this instance.
value() - Method in class org.luaj.vm2.Buffer
Get buffer contents as a LuaValue
valueOf(double) - Static method in class org.luaj.vm2.LuaDouble
 
valueOf(int) - Static method in class org.luaj.vm2.LuaInteger
 
valueOf(long) - Static method in class org.luaj.vm2.LuaInteger
Return a LuaNumber that represents the value provided
valueOf(String) - Static method in class org.luaj.vm2.LuaString
Get a LuaString instance whose bytes match the supplied Java String using the UTF8 encoding.
valueOf(byte[], int, int) - Static method in class org.luaj.vm2.LuaString
Construct a LuaString around a byte array without copying the contents.
valueOf(char[]) - Static method in class org.luaj.vm2.LuaString
Construct a LuaString using the supplied characters as byte values.
valueOf(byte[]) - Static method in class org.luaj.vm2.LuaString
Construct a LuaString around a byte array without copying the contents.
valueOf(boolean) - Static method in class org.luaj.vm2.LuaValue
Convert java boolean to a LuaValue.
valueOf(int) - Static method in class org.luaj.vm2.LuaValue
Convert java int to a LuaValue.
valueOf(double) - Static method in class org.luaj.vm2.LuaValue
Convert java double to a LuaValue.
valueOf(String) - Static method in class org.luaj.vm2.LuaValue
Convert java string to a LuaValue.
valueOf(byte[]) - Static method in class org.luaj.vm2.LuaValue
Convert bytes in an array to a LuaValue.
valueOf(byte[], int, int) - Static method in class org.luaj.vm2.LuaValue
Convert bytes in an array to a LuaValue.
Varargs - Class in org.luaj.vm2
Class to encapsulate varargs values, either as part of a variable argument list, or multiple return values.
Varargs() - Constructor for class org.luaj.vm2.Varargs
 
varargsOf(LuaValue[]) - Static method in class org.luaj.vm2.LuaValue
Construct a Varargs around an array of LuaValues.
varargsOf(LuaValue[], Varargs) - Static method in class org.luaj.vm2.LuaValue
Construct a Varargs around an array of LuaValues.
varargsOf(LuaValue[], int, int) - Static method in class org.luaj.vm2.LuaValue
Construct a Varargs around an array of LuaValues.
varargsOf(LuaValue[], int, int, Varargs) - Static method in class org.luaj.vm2.LuaValue
Construct a Varargs around an array of LuaValues.
varargsOf(LuaValue, Varargs) - Static method in class org.luaj.vm2.LuaValue
Construct a Varargs around a set of 2 or more LuaValues.
varargsOf(LuaValue, LuaValue, Varargs) - Static method in class org.luaj.vm2.LuaValue
Construct a Varargs around a set of 3 or more LuaValues.
varname - Variable in class org.luaj.vm2.LocVars
The local variable name

W

WeakTable - Class in org.luaj.vm2
Subclass of LuaTable that provides weak key and weak value semantics.
WeakTable(boolean, boolean) - Constructor for class org.luaj.vm2.WeakTable
Construct a table with weak keys, weak values, or both
WeakTable(boolean, boolean, int, int) - Constructor for class org.luaj.vm2.WeakTable
Construct a table with weak keys, weak values, or both, and an initial capacity
WeakTable(boolean, boolean, LuaTable) - Constructor for class org.luaj.vm2.WeakTable
Construct a table with weak keys, weak values, or both, and a source of initial data
wrapStdin() - Method in class org.luaj.vm2.lib.jme.JmeIoLib
 
wrapStdout() - Method in class org.luaj.vm2.lib.jme.JmeIoLib
 
write(DataOutputStream, int, int) - Method in class org.luaj.vm2.LuaString
 

Y

yield(Varargs) - Method in class org.luaj.vm2.Globals
Function which yields the current thread.

Z

ZERO - Static variable in class org.luaj.vm2.LuaValue
LuaValue number constant equal to 0

_

_assert(boolean) - Static method in class org.luaj.vm2.compiler.LuaC
 
_VERSION - Static variable in class org.luaj.vm2.Lua
version is supplied by ant build task

A B C D E F G H I J K L M N O P R S T U V W Y Z _

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