# Index (Luaj API)
Date: 2015-04-29

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
add(LuaTable.Slot) - Method in class org.luaj.vm2.WeakTable.WeakSlot
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
  Performs test on 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
arrayget(LuaValue[], int) - Method in class org.luaj.vm2.LuaTable
arrayget(LuaValue[], int) - Method in class org.luaj.vm2.WeakTable
arraykey(int) - Method in class org.luaj.vm2.WeakTable.WeakSlot
assert_(boolean, String) - Static method in class org.luaj.vm2.LuaValue
  Assert a condition is true, or throw a `LuaError` if not Returns no value when b is true, throws `LuaValue.error(String)` with `msg` as argument and does not return if b is false.

## B

baselib - Variable in class org.luaj.vm2.Globals
  The BaseLib instance loaded into this Globals
BaseLib - Class in org.luaj.vm2.lib
  Subclass of `LibFunction` which implements the lua basic library functions.
BaseLib() - Constructor for class org.luaj.vm2.lib.BaseLib
bind(LuaValue, Class, String[]) - Method in class org.luaj.vm2.lib.LibFunction
  Bind a set of library functions.
bind(LuaValue, Class, String[], int) - Method in class org.luaj.vm2.lib.LibFunction
  Bind a set of library functions, with an offset
Bit32Lib - Class in org.luaj.vm2.lib
  Subclass of LibFunction that implements the Lua standard `bit32` library.
Bit32Lib() - Constructor for class org.luaj.vm2.lib.Bit32Lib
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.State

## C

call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.BaseLib
  Perform one-time initialization on the library by adding base functions to the supplied environment, and returning it as the return value.
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.Bit32Lib
  Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.CoroutineLib
  Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.DebugLib
  Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.IoLib
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.jse.JseBaseLib
  Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.jse.JseMathLib
  Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.
call() - Method in class org.luaj.vm2.lib.LibFunction
call(LuaValue) - Method in class org.luaj.vm2.lib.LibFunction
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.LibFunction
call(LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.LibFunction
call(LuaValue, LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.LibFunction
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.MathLib.BinaryOp
call(double, double) - Method in class org.luaj.vm2.lib.MathLib.BinaryOp
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.MathLib
  Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.
call(LuaValue) - Method in class org.luaj.vm2.lib.MathLib.UnaryOp
call(double) - Method in class org.luaj.vm2.lib.MathLib.UnaryOp
call(LuaValue) - Method in class org.luaj.vm2.lib.OneArgFunction
call() - Method in class org.luaj.vm2.lib.OneArgFunction
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.OneArgFunction
call(LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.OneArgFunction
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.OsLib
  Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.PackageLib
  Perform one-time initialization on the library by adding package functions to the supplied environment, and returning it as the return value.
call(LuaValue) - Method in class org.luaj.vm2.lib.PackageLib.require
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.StringLib
  Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.TableLib
  Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.
call(LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.ThreeArgFunction
call() - Method in class org.luaj.vm2.lib.ThreeArgFunction
call(LuaValue) - Method in class org.luaj.vm2.lib.ThreeArgFunction
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.ThreeArgFunction
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.TwoArgFunction
call() - Method in class org.luaj.vm2.lib.TwoArgFunction
call(LuaValue) - Method in class org.luaj.vm2.lib.TwoArgFunction
call(LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.TwoArgFunction
call() - Method in class org.luaj.vm2.lib.VarArgFunction
call(LuaValue) - Method in class org.luaj.vm2.lib.VarArgFunction
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.VarArgFunction
call(LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.VarArgFunction
call() - Method in class org.luaj.vm2.lib.ZeroArgFunction
call(LuaValue) - Method in class org.luaj.vm2.lib.ZeroArgFunction
call(LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.ZeroArgFunction
call(LuaValue, LuaValue, LuaValue) - Method in class org.luaj.vm2.lib.ZeroArgFunction
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 `LuaValue.CALL` metatag, if it exists.
CALLS - Static variable in class org.luaj.vm2.lib.DebugLib
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
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 `LuaValue.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
classForName(String) - Method in class org.luaj.vm2.lib.jse.LuajavaLib
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.
clock() - Method in class org.luaj.vm2.lib.OsLib
close() - Method in class org.luaj.vm2.lib.IoLib.File
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
coerce(Object) - Static method in class org.luaj.vm2.lib.jse.CoerceJavaToLua
  Coerse a Java object to a corresponding lua value.
coerce(LuaValue, Class) - Static method in class org.luaj.vm2.lib.jse.CoerceLuaToJava
  Coerce a LuaValue value to a specified java class
CoerceJavaToLua - Class in org.luaj.vm2.lib.jse
  Helper class to coerce values from Java to lua within the luajava library.
CoerceJavaToLua() - Constructor for class org.luaj.vm2.lib.jse.CoerceJavaToLua
CoerceLuaToJava - Class in org.luaj.vm2.lib.jse
  Helper class to coerce values from lua to Java within the luajava library.
CoerceLuaToJava() - Constructor for class org.luaj.vm2.lib.jse.CoerceLuaToJava
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) - Method in class org.luaj.vm2.compiler.LuaC
  Compile lua source into a Prototype.
compile(InputStream, String) - Method in interface org.luaj.vm2.Globals.Compiler
  Compile lua source into a Prototype.
compileAll(InputStream, String, String, Globals, boolean) - Method in class org.luaj.vm2.luajc.LuaJC
compileAll(Reader, String, String, Globals, boolean) - Method in class org.luaj.vm2.luajc.LuaJC
compilePrototype(Reader, String) - Method in class org.luaj.vm2.Globals
  Compile lua source from a Reader into a Prototype.
compilePrototype(InputStream, String) - Method in class org.luaj.vm2.Globals
  Compile lua source from an InputStream into a Prototype.
compiler - Variable in class org.luaj.vm2.Globals
  The installed compiler.
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.
copy(LuaTable.Slot) - Method in class org.luaj.vm2.WeakTable.WeakSlot
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
  The current number of coroutines.
CoroutineLib - Class in org.luaj.vm2.lib
  Subclass of `LibFunction` which implements the lua standard `coroutine` library.
CoroutineLib() - Constructor for class org.luaj.vm2.lib.CoroutineLib

## D

date(String, double) - Method in class org.luaj.vm2.lib.OsLib
  If the time argument is present, this is the time to be formatted (see the os.time function for a description of this value).
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 `DebugLib` library.
debugGlobals() - Static method in class org.luaj.vm2.lib.jse.JsePlatform
  Create standard globals including the `DebugLib` library.
debuglib - Variable in class org.luaj.vm2.Globals
  The DebugLib instance loaded into this Globals, or null if debugging is not enabled
DebugLib - Class in org.luaj.vm2.lib
  Subclass of `LibFunction` which implements the lua standard `debug` library.
DebugLib() - Constructor for class org.luaj.vm2.lib.DebugLib
DebugLib.CallStack - Class in org.luaj.vm2.lib
decodeAsUtf8(byte[], int, int) - Static method in class org.luaj.vm2.LuaString
  Convert to Java String interpreting as utf8 characters.
DEFAULT_LUA_PATH - Static variable in class org.luaj.vm2.lib.PackageLib
  The default value to use for package.path.
defaultEntry(LuaValue, LuaValue) - Static method in class org.luaj.vm2.LuaTable
DefaultLauncher - Class in org.luaj.vm2.server
  Default `Launcher` instance that creates standard globals and runs the supplied scripts with chunk name 'main'.
DefaultLauncher() - Constructor for class org.luaj.vm2.server.DefaultLauncher
difftime(double, double) - Method in class org.luaj.vm2.lib.OsLib
  Returns the number of seconds from time t1 to time t2.
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.
dpow(double, double) - Static method in class org.luaj.vm2.lib.MathLib
  compute power using installed math library, or default if there is no math library installed
dpow_d(double, double) - Static method in class org.luaj.vm2.lib.MathLib
dpow_default(double, double) - Static method in class org.luaj.vm2.lib.MathLib
  Default JME version computes using longhand heuristics.
dpow_lib(double, double) - Method in class org.luaj.vm2.lib.jse.JseMathLib
  Faster, better version of pow() used by arithmetic operator ^
dpow_lib(double, double) - Method in class org.luaj.vm2.lib.MathLib
  Hook to override default dpow behavior with faster implementation.

## E

EMPTYSTRING - Static variable in class org.luaj.vm2.LuaValue
  LuaString constant with value ""
encodeToUtf8(char[], int, 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.
encoding - Static variable in class org.luaj.vm2.LoadState
  The character encoding to use for file encoding.
endpc - Variable in class org.luaj.vm2.LocVars
  The instruction offset when the variable goes out of scope
entry(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaTable
entry(LuaValue, LuaValue) - Method in class org.luaj.vm2.WeakTable
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 `LuaValue.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 `LuaValue.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.LuaThread
  Error message handler for this thread, if any.
eval() - Method in class org.luaj.vm2.TailcallVarargs
eval() - Method in class org.luaj.vm2.Varargs
  Evaluate any pending tail call and return result.
EXEC_ERROR - Static variable in class org.luaj.vm2.lib.jse.JseOsLib
  return code indicating the execute() threw an unknown exception
EXEC_INTERRUPTED - Static variable in class org.luaj.vm2.lib.jse.JseOsLib
  return code indicating the execute() was interrupted
EXEC_IOEXCEPTION - Static variable in class org.luaj.vm2.lib.jse.JseOsLib
  return code indicating the execute() threw an I/O exception
execute(String) - Method in class org.luaj.vm2.lib.jse.JseOsLib
execute(String) - Method in class org.luaj.vm2.lib.OsLib
  This function is equivalent to the C function system.
execute(LuaValue[], Varargs) - Method in class org.luaj.vm2.LuaClosure
exit(int) - Method in class org.luaj.vm2.lib.OsLib
  Calls the C function exit, with an optional code, to terminate the host program.
exitValue() - Method in class org.luaj.vm2.lib.jse.JseProcess
  Get the exit value of the process.

## F

FALSE - Static variable in class org.luaj.vm2.LuaValue
  LuaBoolean constant corresponding to lua `false`
FILE_NAMES - Static variable in class org.luaj.vm2.lib.IoLib
fileline - Variable in exception org.luaj.vm2.LuaError
find(LuaValue) - Method in class org.luaj.vm2.WeakTable.WeakSlot
finder - Variable in class org.luaj.vm2.Globals
  The installed ResourceFinder for looking files by name.
findResource(String) - Method in class org.luaj.vm2.lib.BaseLib
  ResourceFinder implementation Tries to open the file as a resource, which can work for JSE and JME.
findResource(String) - Method in class org.luaj.vm2.lib.jse.JseBaseLib
  Try to open a file in the current working directory, or fall back to base opener if not found.
findResource(String) - Method in interface org.luaj.vm2.lib.ResourceFinder
  Try to open a file, or return null if not found.
first() - Method in class org.luaj.vm2.WeakTable.WeakSlot
flush() - Method in class org.luaj.vm2.lib.IoLib.File
freadall(IoLib.File) - Static method in class org.luaj.vm2.lib.IoLib
freadbytes(IoLib.File, int) - Static method in class org.luaj.vm2.lib.IoLib
freadline(IoLib.File) - Static method in class org.luaj.vm2.lib.IoLib
freadnumber(IoLib.File) - Static method in class org.luaj.vm2.lib.IoLib
freaduntil(IoLib.File, boolean) - Static method in class org.luaj.vm2.lib.IoLib
FTYPE_NAMED - Static variable in class org.luaj.vm2.lib.IoLib
  Enumerated value representing a file type for a named file
FTYPE_STDERR - Static variable in class org.luaj.vm2.lib.IoLib
  Enumerated value representing stderr
FTYPE_STDIN - Static variable in class org.luaj.vm2.lib.IoLib
  Enumerated value representing stdin
FTYPE_STDOUT - Static variable in class org.luaj.vm2.lib.IoLib
  Enumerated value representing stdout
function - Variable in class org.luaj.vm2.LuaThread.State

## G

g - Variable in class org.luaj.vm2.server.DefaultLauncher
get(LuaValue) - Method in class org.luaj.vm2.lib.IoLib.File
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 `LuaValue.INDEX`.
get(int) - Method in class org.luaj.vm2.LuaValue
  Get a value in a table including metatag processing using `LuaValue.INDEX`.
get(String) - Method in class org.luaj.vm2.LuaValue
  Get a value in a table including metatag processing using `LuaValue.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.
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
getenv(String) - Method in class org.luaj.vm2.lib.jse.JseOsLib
getenv(String) - Method in class org.luaj.vm2.lib.OsLib
  Returns the value of the process environment variable varname, or the System property value for varname, or null if the variable is not defined in either environment.
getHashLength() - Method in class org.luaj.vm2.LuaTable
  Get the length of the hash part of the table.
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
  Get the string message if it was supplied, or a string representation of the message object if that was supplied.
getMessageObject() - Method in exception org.luaj.vm2.LuaError
  Get the LuaValue that was provided in the constructor, or a LuaString containing the message if it was a string error argument.
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`
getobjname(Prototype, int, int) - Static method in class org.luaj.vm2.lib.DebugLib
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.lib.IoLib
globals - Variable in class org.luaj.vm2.lib.OsLib
globals - Variable in class org.luaj.vm2.LuaThread
Globals.Compiler - Interface in org.luaj.vm2
  Interface for module that converts lua source text into a prototype.
Globals.Loader - Interface in org.luaj.vm2
  Interface for module that converts a Prototype into a LuaFunction with an environment.
Globals.Undumper - Interface in org.luaj.vm2
  Interface for module that loads lua binary chunk into a prototype.
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

hash - Variable in class org.luaj.vm2.LuaTable
  the hash part
hashCode() - Method in class org.luaj.vm2.LuaDouble
hashCode() - Method in class org.luaj.vm2.LuaInteger
hashCode(int) - Static method in class org.luaj.vm2.LuaInteger
hashCode() - Method in class org.luaj.vm2.LuaString
hashCode(byte[], int, int) - Static method in class org.luaj.vm2.LuaString
  Compute the hash code of a sequence of bytes within a byte array using lua's rules for string hashes.
hashCode() - Method in class org.luaj.vm2.LuaUserdata
hashEntries - Variable in class org.luaj.vm2.LuaTable
  the number of hash entries
hashget(LuaValue) - Method in class org.luaj.vm2.LuaTable
hashmod(int, int) - Static method in class org.luaj.vm2.LuaTable
hashpow2(int, int) - Static method in class org.luaj.vm2.LuaTable
hashset(LuaValue, LuaValue) - Method in class org.luaj.vm2.LuaTable
  Set a hashtable value
hashSlot(LuaValue, int) - Static method in class org.luaj.vm2.LuaTable
  Find the hashtable slot index to use.
hookcall - Variable in class org.luaj.vm2.LuaThread.State
hookcount - Variable in class org.luaj.vm2.LuaThread.State
hookfunc - Variable in class org.luaj.vm2.LuaThread.State
  Hook function control state used by debug lib.
hookline - Variable in class org.luaj.vm2.LuaThread.State
hookrtrn - Variable in class org.luaj.vm2.LuaThread.State

## 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 `LuaValue.NIL` if there are no more, or throw a `LuaError` if not a table.
inhook - Variable in class org.luaj.vm2.LuaThread.State
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(Globals) - 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.
install(Globals) - Static method in class org.luaj.vm2.LoadState
  Install this class as the standard Globals.Undumper for the supplied Globals
install(Globals) - Static method in class org.luaj.vm2.luajc.LuaJC
  Install the compiler as the main Globals.Loader to use in a set of globals.
instance - Static variable in class org.luaj.vm2.compiler.LuaC
  A sharable instance of the LuaC compiler.
instance - Static variable in class org.luaj.vm2.LoadState
  Shared instance of Globals.Undumper to use loading prototypes from binary lua files
instance - Static variable in class org.luaj.vm2.luajc.LuaJC
invoke(Varargs) - Method in class org.luaj.vm2.lib.jse.LuajavaLib
invoke(Varargs) - Method in class org.luaj.vm2.lib.LibFunction
invoke(Varargs) - Method in class org.luaj.vm2.lib.OneArgFunction
invoke(Varargs) - Method in class org.luaj.vm2.lib.PackageLib.java_searcher
invoke(Varargs) - Method in class org.luaj.vm2.lib.PackageLib.lua_searcher
invoke(Varargs) - Method in class org.luaj.vm2.lib.PackageLib.preload_searcher
invoke(Varargs) - Method in class org.luaj.vm2.lib.PackageLib.searchpath
invoke(Varargs) - Method in class org.luaj.vm2.lib.ThreeArgFunction
invoke(Varargs) - Method in class org.luaj.vm2.lib.TwoArgFunction
invoke(Varargs) - Method in class org.luaj.vm2.lib.VarArgFunction
  Subclass responsibility.
invoke(Varargs) - Method in class org.luaj.vm2.lib.ZeroArgFunction
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`.
IO_NAMES - Static variable in class org.luaj.vm2.lib.IoLib
IoLib - Class in org.luaj.vm2.lib
  Abstract base class extending `LibFunction` which implements the core of the lua standard `io` library.
IoLib() - Constructor for class org.luaj.vm2.lib.IoLib
IoLib.File - Class in org.luaj.vm2.lib
IoLib.File() - Constructor for class org.luaj.vm2.lib.IoLib.File
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`
isclosed() - Method in class org.luaj.vm2.lib.IoLib.File
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
isLargeKey(LuaValue) - Static method in class org.luaj.vm2.LuaTable
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.
isstdfile() - Method in class org.luaj.vm2.lib.IoLib.File
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.
isUserClass(String) - Static method in class org.luaj.vm2.server.LuajClassLoader
  Test if a class name should be considered a user class and loaded by this loader, or a system class and loaded by the system loader.
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.

## J

java_searcher - Variable in class org.luaj.vm2.lib.PackageLib
  Loader that loads as a Java class.
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
JseBaseLib - Class in org.luaj.vm2.lib.jse
  Subclass of `BaseLib` and `LibFunction` which implements the lua basic library functions and provides a directory based `ResourceFinder` as the `Globals.finder`.
JseBaseLib() - Constructor for class org.luaj.vm2.lib.jse.JseBaseLib
JseIoLib - Class in org.luaj.vm2.lib.jse
  Subclass of `IoLib` and therefore `LibFunction` which implements the lua standard `io` library for the JSE platform.
JseIoLib() - Constructor for class org.luaj.vm2.lib.jse.JseIoLib
JseMathLib - Class in org.luaj.vm2.lib.jse
  Subclass of `LibFunction` which implements the lua standard `math` library.
JseMathLib() - Constructor for class org.luaj.vm2.lib.jse.JseMathLib
JseOsLib - Class in org.luaj.vm2.lib.jse
  Subclass of `LibFunction` which implements the standard lua `os` library.
JseOsLib() - Constructor for class org.luaj.vm2.lib.jse.JseOsLib
  public constructor
JsePlatform - Class in org.luaj.vm2.lib.jse
  The `JsePlatform` class is a convenience class to standardize how globals tables are initialized for the JSE platform.
JsePlatform() - Constructor for class org.luaj.vm2.lib.jse.JsePlatform
JseProcess - Class in org.luaj.vm2.lib.jse
  Analog of Process that pipes input and output to client-specified streams.
JseProcess(String[], InputStream, OutputStream, OutputStream) - Constructor for class org.luaj.vm2.lib.jse.JseProcess
  Construct a process around a command, with specified streams to redirect input and output to.
JseProcess(String, InputStream, OutputStream, OutputStream) - Constructor for class org.luaj.vm2.lib.jse.JseProcess
  Construct a process around a command, with specified streams to redirect input and output to.
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
key - Variable in class org.luaj.vm2.WeakTable.WeakSlot
keyCount() - Method in class org.luaj.vm2.LuaTable
  This may be deprecated in a future release.
keyeq(LuaValue) - Method in class org.luaj.vm2.WeakTable.WeakSlot
keyindex(int) - Method in class org.luaj.vm2.WeakTable.WeakSlot
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.State
lastlinedefined - Variable in class org.luaj.vm2.Prototype
launch(String, Object[]) - Method in class org.luaj.vm2.server.DefaultLauncher
  Launches the script with chunk name 'main'
launch(InputStream, Object[]) - Method in class org.luaj.vm2.server.DefaultLauncher
  Launches the script with chunk name 'main' and loading using modes 'bt'
launch(Reader, Object[]) - Method in class org.luaj.vm2.server.DefaultLauncher
  Launches the script with chunk name 'main'
launch(String, Object[]) - Method in interface org.luaj.vm2.server.Launcher
  Launch a script contained in a String.
launch(InputStream, Object[]) - Method in interface org.luaj.vm2.server.Launcher
  Launch a script from an InputStream.
launch(Reader, Object[]) - Method in interface org.luaj.vm2.server.Launcher
  Launch a script from a Reader.
Launcher - Interface in org.luaj.vm2.server
  Interface to launch lua scripts using the `LuajClassLoader`.
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
LibFunction - Class in org.luaj.vm2.lib
  Subclass of `LuaFunction` common to Java functions exposed to lua.
LibFunction() - Constructor for class org.luaj.vm2.lib.LibFunction
  Default constructor for use by subclasses
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(Prototype, String, LuaValue) - Method in class org.luaj.vm2.compiler.LuaC
load(InputStream, String, Globals) - Method in class org.luaj.vm2.compiler.LuaC
  Deprecated. Use Globals.load(InputString, String, String) instead, or LuaC.compile(InputStream, String) and construct LuaClosure directly.
load(String, String) - Method in class org.luaj.vm2.Globals
  Convenience function to load a string value as a script.
load(String) - Method in class org.luaj.vm2.Globals
  Convenience function to load a string value as a script.
load(String, String, LuaTable) - Method in class org.luaj.vm2.Globals
  Convenience function to load a string value as a script with a custom environment.
load(Reader, String) - Method in class org.luaj.vm2.Globals
  Load the content form a reader as a text file.
load(Reader, String, LuaTable) - Method in class org.luaj.vm2.Globals
  Load the content form a reader as a text file, supplying a custom environment.
load(InputStream, String, String, LuaValue) - Method in class org.luaj.vm2.Globals
  Load the content form an input stream as a binary chunk or text file.
load(Prototype, String, LuaValue) - Method in interface org.luaj.vm2.Globals.Loader
  Convert the prototype into a LuaFunction with the supplied environment.
load(Prototype, String, LuaValue) - Method in class org.luaj.vm2.luajc.LuaJC
load(LuaValue) - Method in class org.luaj.vm2.LuaValue
  Load a library instance by calling it with and empty string as the modname, and this Globals as the environment.
loadClass(String) - Method in class org.luaj.vm2.server.LuajClassLoader
loader - Variable in class org.luaj.vm2.Globals
  The installed loader.
loadfile(String) - Method in class org.luaj.vm2.Globals
  Convenience function for loading a file that is either binary lua or lua source.
loadFile(String, String, LuaValue) - Method in class org.luaj.vm2.lib.BaseLib
  Load from a named file, returning the chunk or nil,error of can't load
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.
loadlib(Varargs) - Method in class org.luaj.vm2.lib.PackageLib.loadlib
loadPrototype(InputStream, String, String) - Method in class org.luaj.vm2.Globals
  Load lua source or lua binary from an input stream into a Prototype.
LoadState - Class in org.luaj.vm2
  Class to undump compiled lua bytecode into a `Prototype` instances.
loadStream(InputStream, String, String, LuaValue) - Method in class org.luaj.vm2.lib.BaseLib
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_searcher - Variable in class org.luaj.vm2.lib.PackageLib
  Loader that loads as a lua script using the lua path currently in `PackageLib.searchpath`
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.
LuaError(LuaValue) - Constructor for exception org.luaj.vm2.LuaError
  Construct a LuaError with a LuaValue as the message object, 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.
LuajavaLib - Class in org.luaj.vm2.lib.jse
  Subclass of `LibFunction` which implements the features of the luajava package.
LuajavaLib() - Constructor for class org.luaj.vm2.lib.jse.LuajavaLib
LuaJC - Class in org.luaj.vm2.luajc
  Implementation of `Globals.Compiler` which does direct lua-to-java-bytecode compiling.
LuaJC() - Constructor for class org.luaj.vm2.luajc.LuaJC
LuajClassLoader - Class in org.luaj.vm2.server
  Class loader that can be used to launch a lua script in a Java VM that has a unique set of classes for org.luaj classes.
LuajClassLoader() - Constructor for class org.luaj.vm2.server.LuajClassLoader
luaMain(LuaValue, String[]) - Static method in class org.luaj.vm2.lib.jse.JsePlatform
  Simple wrapper for invoking a lua function with command line arguments.
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
make(boolean, boolean) - Static method in class org.luaj.vm2.WeakTable
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
MathLib - Class in org.luaj.vm2.lib
  Subclass of `LibFunction` which implements the lua standard `math` library.
MathLib() - Constructor for class org.luaj.vm2.lib.MathLib
  Construct a MathLib, which can be initialized by calling it with a modname string, and a global environment table as arguments using `MathLib.call(LuaValue, LuaValue)`.
MATHLIB - Static variable in class org.luaj.vm2.lib.MathLib
  Pointer to the latest MathLib instance, used only to dispatch math.exp to tha correct platform math library.
MathLib.BinaryOp - Class in org.luaj.vm2.lib
MathLib.BinaryOp() - Constructor for class org.luaj.vm2.lib.MathLib.BinaryOp
MathLib.UnaryOp - Class in org.luaj.vm2.lib
MathLib.UnaryOp() - Constructor for class org.luaj.vm2.lib.MathLib.UnaryOp
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
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
metatableOf(LuaValue) - Static method in class org.luaj.vm2.LuaValue
  Construct a Metatable instance from the given LuaValue
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 - Variable in class org.luaj.vm2.lib.LibFunction
  The common name for this function, useful for debugging.
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.
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 `LuaValue.EQ`.
neq_b(LuaValue) - Method in class org.luaj.vm2.LuaValue
  Notquals: Perform inequality comparison with another value including metatag processing using `LuaValue.EQ`.
NEWINDEX - Static variable in class org.luaj.vm2.LuaValue
  LuaString constant with value "__newindex" for use as metatag
NewLauncher() - Static method in class org.luaj.vm2.server.LuajClassLoader
  Construct a default `Launcher` instance that will load classes in its own `LuajClassLoader` using the default implementation class `DefaultLauncher`.
NewLauncher(Class<? extends Launcher>) - Static method in class org.luaj.vm2.server.LuajClassLoader
  Construct a `Launcher` instance that will load classes in its own `LuajClassLoader` using a user-supplied implementation class that implements `Launcher`.
newupe() - Static method in class org.luaj.vm2.lib.LibFunction
  Java code generation utility to allocate storage for upvalue, leave it empty
newupl(LuaValue) - Static method in class org.luaj.vm2.lib.LibFunction
  Java code generation utility to allocate storage for upvalue, initialize with value
newupn() - Static method in class org.luaj.vm2.lib.LibFunction
  Java code generation utility to allocate storage for upvalue, initialize with nil
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 `LuaValue.NIL` if there are no more, or throw a `LuaError` if not a table.
next - Variable in class org.luaj.vm2.WeakTable.WeakSlot
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 `LuaValue.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

onCall(LuaFunction) - Method in class org.luaj.vm2.lib.DebugLib
onCall(LuaClosure, Varargs, LuaValue[]) - Method in class org.luaj.vm2.lib.DebugLib
ONE - Static variable in class org.luaj.vm2.LuaValue
  LuaValue number constant equal to 1
OneArgFunction - Class in org.luaj.vm2.lib
  Abstract base class for Java function implementations that take one argument and return one value.
OneArgFunction() - Constructor for class org.luaj.vm2.lib.OneArgFunction
  Default constructor
onInstruction(int, Varargs, int) - Method in class org.luaj.vm2.lib.DebugLib
onInvoke(Varargs) - Method in class org.luaj.vm2.lib.VarArgFunction
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.
onReturn() - Method in class org.luaj.vm2.lib.DebugLib
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
opcode - Variable in class org.luaj.vm2.lib.LibFunction
  User-defined opcode to differentiate between instances of the library function class.
openFile(String, boolean, boolean, boolean, boolean) - Method in class org.luaj.vm2.lib.IoLib
  Open a file in a particular mode.
openFile(String, boolean, boolean, boolean, boolean) - Method in class org.luaj.vm2.lib.jme.JmeIoLib
openFile(String, boolean, boolean, boolean, boolean) - Method in class org.luaj.vm2.lib.jse.JseIoLib
openProgram(String, String) - Method in class org.luaj.vm2.lib.IoLib
  Start a new process and return a file for input or output
openProgram(String, String) - Method in class org.luaj.vm2.lib.jme.JmeIoLib
openProgram(String, String) - Method in class org.luaj.vm2.lib.jse.JseIoLib
OPNAMES - Static variable in class org.luaj.vm2.Print
  String names for each lua opcode value.
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 - package org.luaj.vm2.lib
org.luaj.vm2.lib.jme - package org.luaj.vm2.lib.jme
org.luaj.vm2.lib.jse - package org.luaj.vm2.lib.jse
org.luaj.vm2.luajc - package org.luaj.vm2.luajc
org.luaj.vm2.server - package org.luaj.vm2.server
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
OsLib - Class in org.luaj.vm2.lib
  Subclass of `LibFunction` which implements the standard lua `os` library.
OsLib() - Constructor for class org.luaj.vm2.lib.OsLib
  Create and OsLib instance.

## 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
PackageLib - Class in org.luaj.vm2.lib
  Subclass of `LibFunction` which implements the lua standard package and module library functions.
PackageLib() - Constructor for class org.luaj.vm2.lib.PackageLib
PackageLib.java_searcher - Class in org.luaj.vm2.lib
PackageLib.java_searcher() - Constructor for class org.luaj.vm2.lib.PackageLib.java_searcher
PackageLib.loadlib - Class in org.luaj.vm2.lib
PackageLib.loadlib() - Constructor for class org.luaj.vm2.lib.PackageLib.loadlib
PackageLib.lua_searcher - Class in org.luaj.vm2.lib
PackageLib.lua_searcher() - Constructor for class org.luaj.vm2.lib.PackageLib.lua_searcher
PackageLib.preload_searcher - Class in org.luaj.vm2.lib
PackageLib.preload_searcher() - Constructor for class org.luaj.vm2.lib.PackageLib.preload_searcher
PackageLib.require - Class in org.luaj.vm2.lib
  require (modname) Loads the given module.
PackageLib.require() - Constructor for class org.luaj.vm2.lib.PackageLib.require
PackageLib.searchpath - Class in org.luaj.vm2.lib
PackageLib.searchpath() - Constructor for class org.luaj.vm2.lib.PackageLib.searchpath
peek() - Method in class org.luaj.vm2.lib.IoLib.File
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
preload_searcher - Variable in class org.luaj.vm2.lib.PackageLib
  Loader that loads from `preload` table if found there
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,
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
  Pretty-prints contents of a Prototype.
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
  Pretty-prints contents of a Prototype in short or long form.
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
printStack(LuaValue[], int, Varargs) - Static method in class org.luaj.vm2.Print
printState(LuaClosure, int, LuaValue[], int, Varargs) - Static method in class org.luaj.vm2.Print
  Print the state of a `LuaClosure` that is being executed
printToStream(PrintStream) - Method in class org.luaj.vm2.LuaString
  Print the bytes of the LuaString to a PrintStream as if it were an ASCII string, quoting and escaping control characters.
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

## 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.
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.
rawsetlist(int, Varargs) - Method in class org.luaj.vm2.LuaValue
  Set list values in a table without invoking metatag processing
read() - Method in class org.luaj.vm2.lib.IoLib.File
read(byte[], int, int) - Method in class org.luaj.vm2.lib.IoLib.File
relink(LuaTable.Slot) - Method in class org.luaj.vm2.WeakTable.WeakSlot
remaining() - Method in class org.luaj.vm2.lib.IoLib.File
remove(String) - Method in class org.luaj.vm2.lib.jse.JseOsLib
remove(String) - Method in class org.luaj.vm2.lib.OsLib
  Deletes the file or directory with the given name.
remove(int) - Method in class org.luaj.vm2.LuaTable
  Remove the element at a position in a list-table
remove(LuaTable.StrongSlot) - Method in class org.luaj.vm2.WeakTable.WeakSlot
rename(String, String) - Method in class org.luaj.vm2.lib.jse.JseOsLib
rename(String, String) - Method in class org.luaj.vm2.lib.OsLib
  Renames file or directory named oldname to newname.
ResourceFinder - Interface in org.luaj.vm2.lib
  Interface for opening application resource files such as scripts sources.
rest() - Method in class org.luaj.vm2.WeakTable.WeakSlot
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 for string metatables that forwards to the string functions.
s_metatable - Static variable in class org.luaj.vm2.LuaThread
  Shared metatable for lua threads.
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.
seek(String, int) - Method in class org.luaj.vm2.lib.IoLib.File
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 `LuaValue.NEWINDEX`.
set(int, LuaValue) - Method in class org.luaj.vm2.LuaValue
  Set a value in a table without metatag processing using `LuaValue.NEWINDEX`.
set(int, String) - Method in class org.luaj.vm2.LuaValue
  Set a value in a table without metatag processing using `LuaValue.NEWINDEX`.
set(String, LuaValue) - Method in class org.luaj.vm2.LuaValue
  Set a value in a table without metatag processing using `LuaValue.NEWINDEX`.
set(String, double) - Method in class org.luaj.vm2.LuaValue
  Set a value in a table without metatag processing using `LuaValue.NEWINDEX`.
set(String, int) - Method in class org.luaj.vm2.LuaValue
  Set a value in a table without metatag processing using `LuaValue.NEWINDEX`.
set(String, String) - Method in class org.luaj.vm2.LuaValue
  Set a value in a table without metatag processing using `LuaValue.NEWINDEX`.
set(LuaValue) - Method in class org.luaj.vm2.WeakTable.WeakSlot
set(LuaTable.StrongSlot, LuaValue) - Method in class org.luaj.vm2.WeakTable.WeakSlot
setIsLoaded(String, LuaTable) - Method in class org.luaj.vm2.lib.PackageLib
  Allow packages to mark themselves as loaded
setlocale(String, String) - Method in class org.luaj.vm2.lib.OsLib
  Sets the current locale of the program.
setLuaPath(String) - Method in class org.luaj.vm2.lib.PackageLib
  Set the lua path used by this library instance to a new value.
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
setvbuf(String, int) - Method in class org.luaj.vm2.lib.IoLib.File
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.
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.
standardGlobals() - Static method in class org.luaj.vm2.lib.jse.JsePlatform
  Create a standard set of globals for JSE 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.
strengthen(Object) - Static method in class org.luaj.vm2.WeakTable
  Unwrap a LuaValue from a WeakReference and/or WeakUserdata.
StringLib - Class in org.luaj.vm2.lib
  Subclass of `LibFunction` which implements the lua standard `string` library.
StringLib() - Constructor for class org.luaj.vm2.lib.StringLib
  Construct a StringLib, which can be initialized by calling it with a modname string, and a global environment table as arguments using `StringLib.call(LuaValue, LuaValue)`.
strongkey() - Method in class org.luaj.vm2.WeakTable.WeakSlot
strongvalue() - Method in class org.luaj.vm2.LuaValue
  Return this value as a strong reference, or null if it was weak and is no longer referenced.
strongvalue() - Method in class org.luaj.vm2.WeakTable.WeakSlot
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
  Take a substring using Java zero-based indexes for begin and end or range.

## T

TableLib - Class in org.luaj.vm2.lib
  Subclass of `LibFunction` which implements the lua standard `table` library.
TableLib() - Constructor for class org.luaj.vm2.lib.TableLib
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
thread_orphan_check_interval - Static variable in class org.luaj.vm2.LuaThread
  Polling interval, in milliseconds, which each thread uses while waiting to return from a yielded state to check if the lua threads is no longer referenced and therefore should be garbage collected.
ThreeArgFunction - Class in org.luaj.vm2.lib
  Abstract base class for Java function implementations that take two arguments and return one value.
ThreeArgFunction() - Constructor for class org.luaj.vm2.lib.ThreeArgFunction
  Default constructor
time(LuaTable) - Method in class org.luaj.vm2.lib.OsLib
  Returns the current time when called without arguments, or a time representing the date and time specified by the given table.
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
TMP_PREFIX - Static variable in class org.luaj.vm2.lib.OsLib
TMP_SUFFIX - Static variable in class org.luaj.vm2.lib.OsLib
tmpFile() - Method in class org.luaj.vm2.lib.IoLib
  Open a temporary file.
tmpFile() - Method in class org.luaj.vm2.lib.jme.JmeIoLib
tmpFile() - Method in class org.luaj.vm2.lib.jse.JseIoLib
tmpname() - Method in class org.luaj.vm2.lib.jse.JseOsLib
tmpname() - Method in class org.luaj.vm2.lib.OsLib
  Returns a string with a file name that can be used for a temporary file.
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.
toClassname(String) - Static method in class org.luaj.vm2.lib.PackageLib
  Convert lua filename to valid class name
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.lib.IoLib.File
tojstring() - Method in class org.luaj.vm2.lib.LibFunction
tojstring() - Method in class org.luaj.vm2.lib.PackageLib
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.
toLuaValue() - Method in class org.luaj.vm2.LuaTable
toLuaValue() - Method in class org.luaj.vm2.WeakTable
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.
TRACE - Static variable in class org.luaj.vm2.lib.DebugLib
traceback(int) - Method in class org.luaj.vm2.lib.DebugLib
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
TwoArgFunction - Class in org.luaj.vm2.lib
  Abstract base class for Java function implementations that take two arguments and return one value.
TwoArgFunction() - Constructor for class org.luaj.vm2.lib.TwoArgFunction
  Default constructor
type() - Method in class org.luaj.vm2.lib.IoLib.File
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.lib.IoLib.File
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

undump(InputStream, String) - Method in interface org.luaj.vm2.Globals.Undumper
  Load the supplied input stream into a prototype.
undump(InputStream, String) - Static method in class org.luaj.vm2.LoadState
  Load input stream as a lua binary chunk if the first 4 bytes are the lua binary signature.
undumper - Variable in class org.luaj.vm2.Globals
  The installed undumper.
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.
useWeakKeys() - Method in class org.luaj.vm2.LuaTable
useWeakKeys() - Method in class org.luaj.vm2.WeakTable
useWeakValues() - Method in class org.luaj.vm2.LuaTable
useWeakValues() - Method in class org.luaj.vm2.WeakTable

## 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`
value - Variable in class org.luaj.vm2.WeakTable.WeakSlot
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` for a portion of a byte array.
valueOf(char[]) - Static method in class org.luaj.vm2.LuaString
  Construct a `LuaString` using the supplied characters as byte values.
valueOf(char[], int, int) - 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` for all the bytes in a byte array.
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`.
valueUsing(byte[], int, int) - Static method in class org.luaj.vm2.LuaString
  Construct a `LuaString` around, possibly using the the supplied byte array as the backing store.
valueUsing(byte[]) - Static method in class org.luaj.vm2.LuaString
  Construct a `LuaString` for all the bytes in a byte array, possibly using the supplied array as the backing store.
VarArgFunction - Class in org.luaj.vm2.lib
  Abstract base class for Java function implementations that takes varaiable arguments and returns multiple return values.
VarArgFunction() - Constructor for class org.luaj.vm2.lib.VarArgFunction
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 `LuaValue`s.
varargsOf(LuaValue[], Varargs) - Static method in class org.luaj.vm2.LuaValue
  Construct a `Varargs` around an array of `LuaValue`s.
varargsOf(LuaValue[], int, int) - Static method in class org.luaj.vm2.LuaValue
  Construct a `Varargs` around an array of `LuaValue`s.
varargsOf(LuaValue[], int, int, Varargs) - Static method in class org.luaj.vm2.LuaValue
  Construct a `Varargs` around an array of `LuaValue`s.
varargsOf(LuaValue, Varargs) - Static method in class org.luaj.vm2.LuaValue
  Construct a `Varargs` around a set of 2 or more `LuaValue`s.
varargsOf(LuaValue, LuaValue, Varargs) - Static method in class org.luaj.vm2.LuaValue
  Construct a `Varargs` around a set of 3 or more `LuaValue`s.
varname - Variable in class org.luaj.vm2.LocVars
  The local variable name

## W

waitFor() - Method in class org.luaj.vm2.lib.jse.JseProcess
  Wait for the process to complete, and all pending output to finish.
weaken(LuaValue) - Static method in class org.luaj.vm2.WeakTable
  Self-sent message to convert a value to its weak counterpart
WeakTable - Class in org.luaj.vm2
  Subclass of `LuaTable` that provides weak key and weak value semantics.
WeakTable(boolean, boolean, LuaValue) - Constructor for class org.luaj.vm2.WeakTable
  Construct a table with weak keys, weak values, or both
WeakTable.WeakSlot - Class in org.luaj.vm2
WeakTable.WeakSlot(Object, Object, LuaTable.Slot) - Constructor for class org.luaj.vm2.WeakTable.WeakSlot
wrap(LuaValue) - Method in class org.luaj.vm2.LuaTable
wrap(LuaValue) - Method in class org.luaj.vm2.WeakTable
wrapStderr() - Method in class org.luaj.vm2.lib.IoLib
  Wrap the standard error output.
wrapStderr() - Method in class org.luaj.vm2.lib.jme.JmeIoLib
wrapStderr() - Method in class org.luaj.vm2.lib.jse.JseIoLib
wrapStdin() - Method in class org.luaj.vm2.lib.IoLib
  Wrap the standard input.
wrapStdin() - Method in class org.luaj.vm2.lib.jme.JmeIoLib
wrapStdin() - Method in class org.luaj.vm2.lib.jse.JseIoLib
wrapStdout() - Method in class org.luaj.vm2.lib.IoLib
  Wrap the standard output.
wrapStdout() - Method in class org.luaj.vm2.lib.jme.JmeIoLib
wrapStdout() - Method in class org.luaj.vm2.lib.jse.JseIoLib
write(LuaString) - Method in class org.luaj.vm2.lib.IoLib.File
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
ZeroArgFunction - Class in org.luaj.vm2.lib
  Abstract base class for Java function implementations that take no arguments and return one value.
ZeroArgFunction() - Constructor for class org.luaj.vm2.lib.ZeroArgFunction
  Default constructor

## _

_file_close(LuaValue) - Method in class org.luaj.vm2.lib.IoLib
_file_flush(LuaValue) - Method in class org.luaj.vm2.lib.IoLib
_file_lines(LuaValue) - Method in class org.luaj.vm2.lib.IoLib
_file_read(LuaValue, Varargs) - Method in class org.luaj.vm2.lib.IoLib
_file_seek(LuaValue, String, int) - Method in class org.luaj.vm2.lib.IoLib
_file_setvbuf(LuaValue, String, int) - Method in class org.luaj.vm2.lib.IoLib
_file_write(LuaValue, Varargs) - Method in class org.luaj.vm2.lib.IoLib
_io_close(LuaValue) - Method in class org.luaj.vm2.lib.IoLib
_io_flush() - Method in class org.luaj.vm2.lib.IoLib
_io_index(LuaValue) - Method in class org.luaj.vm2.lib.IoLib
_io_input(LuaValue) - Method in class org.luaj.vm2.lib.IoLib
_io_lines(String) - Method in class org.luaj.vm2.lib.IoLib
_io_open(String, String) - Method in class org.luaj.vm2.lib.IoLib
_io_output(LuaValue) - Method in class org.luaj.vm2.lib.IoLib
_io_popen(String, String) - Method in class org.luaj.vm2.lib.IoLib
_io_read(Varargs) - Method in class org.luaj.vm2.lib.IoLib
_io_tmpfile() - Method in class org.luaj.vm2.lib.IoLib
_io_type(LuaValue) - Method in class org.luaj.vm2.lib.IoLib
_io_write(Varargs) - Method in class org.luaj.vm2.lib.IoLib
_lines_iter(LuaValue) - Method in class org.luaj.vm2.lib.IoLib
_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-2015 Luaj.org. All Rights Reserved.