Uses of Class
com.prineside.luaj.LuaValue
Packages that use LuaValue
Package
Description
Lua VM, only works in an interpreted mode, which allows it to support iOS.
-
Uses of LuaValue in com.prineside.luaj
Subclasses of LuaValue in com.prineside.luajModifier and TypeClassDescriptionfinal class
Global environment used by luaj.final class
Extension ofLuaValue
which can hold a Java boolean as its value.final class
class
Base class for functions implemented in Java.class
Class to encapsulate behavior of the singleton instancenil
final class
final class
Subclass ofLuaValue
for representing lua strings.class
Subclass ofLuaValue
for representing lua tables.class
static final class
Varargs implemenation with no values.static final class
Internal class to implement weak userdata values.static class
Internal class to implement weak values.Fields in com.prineside.luaj declared as LuaValueModifier and TypeFieldDescriptionfinal LuaValue[]
FPrototype.k
LuaValue[]
Prototype.k
LuaUserdata.m_metatable
static final LuaValue
LuaValue.NIL
LuaValue constant corresponding to lua#NIL
static final LuaValue[]
LuaValue.NILS
Array ofNIL
values to optimize filling stacks using System.arraycopy().static final LuaValue
LuaValue.NONE
LuaValue constant corresponding to aVarargs
list of no valuesstatic final LuaValue[]
LuaValue.NOVALS
LuaValue array constant with no valuesLuaError.object
static LuaValue
LuaNumber.s_metatable
Shared static metatable for all number values represented in lua.static LuaValue
LuaString.s_metatable
The singleton instance for string metatables that forwards to the string functions.Methods in com.prineside.luaj that return LuaValueModifier and TypeMethodDescriptionLuaNumber.add
(double lhs) LuaString.add
(double rhs) LuaString.add
(int rhs) LuaValue.add
(double rhs) Add: Perform numeric add operation with another value of double type with metatag processingLuaValue.add
(int rhs) Add: Perform numeric add operation with another value of int type with metatag processingAdd: Perform numeric add operation with another value including metatag processing.Perform booleanand
with another operand, based on lua rules for boolean evaluation.LuaValue.arg
(int index) LuaValue.None.arg
(int i) TailcallVarargs.arg
(int i) abstract LuaValue
Varargs.arg
(int i) Get the n-th argument value (1-based).Varargs.ArrayVarargs.arg
(int i) LuaValue.arg1()
LuaValue.None.arg1()
TailcallVarargs.arg1()
abstract LuaValue
Varargs.arg1()
Get the first argument in the list.Varargs.ArrayVarargs.arg1()
static LuaValue
Throw aLuaError
indicating an invalid argument was supplied to a functionLuaClosure.call()
LuaValue.call()
Callthis
with 0 arguments, including metatag processing, and return only the first return value.Callthis
with 1 argument, including metatag processing, and return only the first return value.Callthis
with 2 arguments, including metatag processing, and return only the first return value.Callthis
with 3 arguments, including metatag processing, and return only the first return value.Convenience function which calls a luavalue with a single, string argument.final LuaValue
LuaNil.checknotnil()
LuaValue.checknotnil()
Varargs.checknotnil
(int i) Return argument i as a LuaValue if it is not nil, or throw an error if it is nil.Varargs.checkvalue
(int i) Return argument i as a LuaValue if it exists, or throw an error.static LuaValue
Perform metatag processing for comparison operations.final LuaValue
Concatenate the contents of a table efficiently, usingBuffer
Concatenate another value onto this value and return the result using rules of lua string concatenation including metatag processing.Perform metatag processing for concatenation operations.Reverse-concatenation: concatenate this value onto another value known to be aLuaNumber
and return the result using rules of lua string concatenation including metatag processing.Reverse-concatenation: concatenate this value onto another value known to be aLuaString
and return the result using rules of lua string concatenation including metatag processing.Reverse-concatenation: concatenate this value onto another value whose type is unknwon and return the result using rules of lua string concatenation including metatag processing.static LuaValue
LuaValue.cRegObject
(Object val) For regular objects only.static LuaValue
LuaNumber.ddiv
(double lhs, double rhs) Divide two double numbers according to lua math, and return aLuaValue
result.LuaNumber.div
(double rhs) LuaNumber.div
(int rhs) LuaString.div
(double rhs) LuaString.div
(int rhs) LuaValue.div
(double rhs) Divide: Perform numeric divide operation by another value of double type without metatag processingLuaValue.div
(int rhs) Divide: Perform numeric divide operation by another value of int type without metatag processingDivide: Perform numeric divide operation by another value of unknown type, including metatag processing.LuaNumber.divInto
(double lhs) LuaString.divInto
(double lhs) LuaValue.divInto
(double lhs) Reverse-divide: Perform numeric divide operation into another value with metatag processingstatic LuaValue
LuaNumber.dmod
(double lhs, double rhs) Take modulo double numbers according to lua math, and return aLuaValue
result.final LuaValue
final LuaValue
Equals: Perform equality comparison with another value including metatag processing usingEQ
.static LuaValue
Throw aLuaError
with a particular messagefinal LuaValue
LuaTable.get
(int key) final LuaValue
LuaValue.get
(int key) Get a value in a table including metatag processing usingINDEX
.Get a value in a table including metatag processing usingINDEX
.Get a value in a table including metatag processing usingINDEX
.Globals.getErrorFunc()
LuaError.getMessageObject()
Get the LuaValue that was provided in the constructor, or a LuaString containing the message if it was a string error argument.LuaBoolean.getmetatable()
final LuaValue
LuaFunction.getmetatable()
final LuaValue
LuaNil.getmetatable()
LuaNumber.getmetatable()
LuaString.getmetatable()
final LuaValue
LuaTable.getmetatable()
final LuaValue
LuaUserdata.getmetatable()
LuaValue.getmetatable()
Get the metatable for thisLuaValue
final LuaValue
UpValue.getValue()
Get the value of the upvalueLuaNumber.gt
(double rhs) LuaNumber.gt
(int rhs) LuaValue.gt
(double rhs) Greater than: Perform numeric comparison with another value of double type, including metatag processing, and returningLuaValue
.LuaValue.gt
(int rhs) Greater than: Perform numeric comparison with another value of int type, including metatag processing, and returningLuaValue
.Greater than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returningLuaValue
.LuaNumber.gteq
(double rhs) LuaNumber.gteq
(int rhs) LuaValue.gteq
(double rhs) Greater than or equals: Perform numeric comparison with another value of double type, including metatag processing, and returningLuaValue
.LuaValue.gteq
(int rhs) Greater than or equals: Perform numeric comparison with another value of int type, including metatag processing, and returningLuaValue
.Greater than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returningLuaValue
.LuaTable.IntKeyEntry.key()
LuaTable.LinkSlot.key()
LuaTable.NormalEntry.key()
LuaTable.NumberValueEntry.key()
final LuaValue[]
LuaTable.keys()
This may be deprecated in a future release.LuaString.len()
final LuaValue
LuaTable.len()
LuaValue.len()
Length operator: return lua length of object(#this)
including metatag processing as java intGlobals.load
(InputStream is, String chunkname, String mode, LuaValue environment) Load the content form an input stream as a binary chunk or text file.Load the content form a reader as a text file.Load the content form a reader as a text file, supplying a custom environment.Convenience function to load a string value as a script.Convenience function to load a string value as a script.Convenience function to load a string value as a script with a custom environment.Load a library instance by calling it with and empty string as the modname, and this Globals as the environment.Convenience function for loading a file that is either binary lua or lua source.static LuaValue
LoadState.longBitsToLuaNumber
(long bits) Convert bits in a long value to aLuaValue
.LuaNumber.lt
(double rhs) LuaNumber.lt
(int rhs) LuaValue.lt
(double rhs) Less than: Perform numeric comparison with another value of double type, including metatag processing, and returningLuaValue
.LuaValue.lt
(int rhs) Less than: Perform numeric comparison with another value of int type, including metatag processing, and returningLuaValue
.Less than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returningLuaValue
.LuaNumber.lteq
(double rhs) LuaNumber.lteq
(int rhs) LuaValue.lteq
(double rhs) Less than or equals: Perform numeric comparison with another value of double type, including metatag processing, and returningLuaValue
.LuaValue.lteq
(int rhs) Less than or equals: Perform numeric comparison with another value of int type, including metatag processing, and returningLuaValue
.Less than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returningLuaValue
.Get particular metatag, or returnNIL
if it doesn't existCall named method onthis
with 0 arguments, including metatag processing, and return only the first return value.Call named method onthis
with 1 argument, including metatag processing, and return only the first return value.Call named method onthis
with 2 arguments, including metatag processing, and return only the first return value.Call named method onthis
with 0 arguments, including metatag processing, and return only the first return value.Call named method onthis
with 1 argument, including metatag processing, and return only the first return value.Call named method onthis
with 2 arguments, including metatag processing, and return only the first return value.LuaNumber.mod
(double rhs) LuaNumber.mod
(int rhs) LuaString.mod
(double rhs) LuaString.mod
(int rhs) LuaValue.mod
(double rhs) Modulo: Perform numeric modulo operation with another value of double type without metatag processingLuaValue.mod
(int rhs) Modulo: Perform numeric modulo operation with another value of int type without metatag processingModulo: Perform numeric modulo operation with another value of unknown type, including metatag processing.LuaNumber.modFrom
(double lhs) LuaString.modFrom
(double lhs) LuaValue.modFrom
(double lhs) Reverse-modulo: Perform numeric modulo operation from another value with metatag processingLuaNumber.mul
(double lhs) LuaNumber.mul
(int lhs) LuaString.mul
(double rhs) LuaString.mul
(int rhs) LuaValue.mul
(double rhs) Multiply: Perform numeric multiply operation with another value of double type with metatag processingLuaValue.mul
(int rhs) Multiply: Perform numeric multiply operation with another value of int type with metatag processingMultiply: Perform numeric multiply operation with another value of unknown type, including metatag processing.LuaNumber.neg()
LuaString.neg()
LuaValue.neg()
Unary minus: return negative value(-this)
as defined by lua unary minus operatorNotquals: Perform inequality comparison with another value including metatag processing usingEQ
.LuaBoolean.not()
final LuaValue
LuaNil.not()
LuaValue.not()
Unary not: return inverse boolean value(~this)
as defined by lua not operatorfinal LuaValue
Perform argument check that this is not nil or none.Return argument i as a LuaValue if it exists, ordefval
.Perform booleanor
with another operand, based on lua rules for boolean evaluation.LuaNumber.pow
(double rhs) LuaNumber.pow
(int rhs) LuaString.pow
(double rhs) LuaString.pow
(int rhs) LuaValue.pow
(double rhs) Raise to power: Raise this value to a power of double type with metatag processingLuaValue.pow
(int rhs) Raise to power: Raise this value to a power of int type with metatag processingRaise to power: Raise this value to a power including metatag processing.LuaNumber.powWith
(double lhs) LuaNumber.powWith
(int lhs) LuaString.powWith
(double lhs) LuaString.powWith
(int lhs) LuaValue.powWith
(double lhs) Reverse-raise to power: Raise another value of double type to this power with metatag processingLuaValue.powWith
(int lhs) Reverse-raise to power: Raise another value of double type to this power with metatag processingfinal LuaValue
LuaTable.rawget
(int key) final LuaValue
LuaValue.rawget
(int key) Get a value in a table without metatag processing.Get a value in a table without metatag processing.Get a value in a table without metatag processing.LuaTable.remove
(int pos) Remove the element at a position in a list-tableLuaTable.setmetatable
(LuaValue metatable) final LuaValue
LuaUserdata.setmetatable
(LuaValue metatable) LuaValue.setmetatable
(LuaValue metatable) Set the metatable for thisLuaValue
WeakTable.WeakKeyAndValueSlot.strongkey()
WeakTable.WeakKeySlot.strongkey()
WeakTable.WeakSlot.strongkey()
LuaValue.strongvalue()
Return this value as a strong reference, or null if it was weak and is no longer referenced.WeakTable.WeakKeyAndValueSlot.strongvalue()
WeakTable.WeakSlot.strongvalue()
WeakTable.WeakUserdata.strongvalue()
WeakTable.WeakValue.strongvalue()
WeakTable.WeakValueSlot.strongvalue()
LuaNumber.sub
(double rhs) LuaNumber.sub
(int rhs) LuaString.sub
(double rhs) LuaString.sub
(int rhs) LuaValue.sub
(double rhs) Subtract: Perform numeric subtract operation with another value of double type with metatag processingLuaValue.sub
(int rhs) Subtract: Perform numeric subtract operation with another value of int type with metatag processingSubtract: Perform numeric subtract operation with another value of unknown type, including metatag processing.LuaNumber.subFrom
(double lhs) LuaString.subFrom
(double lhs) LuaValue.subFrom
(double lhs) Reverse-subtract: Perform numeric subtract operation from an int value with metatag processingLuaValue.subFrom
(int lhs) Reverse-subtract: Perform numeric subtract operation from a double value without metatag processingLuaTable.toLuaValue()
WeakTable.toLuaValue()
LuaNumber.tonumber()
LuaString.tonumber()
convert to a number using baee 10 or base 16 if it starts with '0x', or NIL if it can't be convertedLuaString.tonumber
(int base) convert to a number using a supplied base, or NIL if it can't be convertedLuaValue.tonumber()
Conditionally convert to lua number without throwing errors.LuaNumber.tostring()
LuaString.tostring()
LuaValue.tostring()
Conditionally convert to lua string without throwing errors.Buffer.value()
Get buffer contents as aLuaValue
LuaTable.IntKeyEntry.value()
LuaTable.LinkSlot.value()
LuaTable.NormalEntry.value()
LuaTable.NumberValueEntry.value()
Methods in com.prineside.luaj with parameters of type LuaValueModifier and TypeMethodDescriptionAdd: Perform numeric add operation with another value including metatag processing.Perform booleanand
with another operand, based on lua rules for boolean evaluation.final Buffer
Append aLuaValue
to the buffer.Callthis
with 1 argument, including metatag processing, and return only the first return value.Callthis
with 2 arguments, including metatag processing, and return only the first return value.Callthis
with 3 arguments, including metatag processing, and return only the first return value.Perform metatag processing for comparison operations.Concatenate another value onto this value and return the result using rules of lua string concatenation including metatag processing.Perform metatag processing for concatenation operations.Concatenate this buffer onto aLuaValue
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.Divide: Perform numeric divide operation by another value of unknown type, including metatag processing.final LuaTable.Slot
final LuaValue
final LuaValue
Equals: Perform equality comparison with another value including metatag processing usingEQ
.boolean
boolean
final boolean
final boolean
boolean
Equals: Perform equality comparison with another value including metatag processing usingEQ
, and return java booleanfinal boolean
static boolean
Perform equality testing metatag processingcom.prineside.luaj.LuaTable.StrongSlot
com.prineside.luaj.LuaTable.StrongSlot
com.prineside.luaj.LuaTable.StrongSlot
Compare given key with first()'s key; return first() if equal.com.prineside.luaj.LuaTable.StrongSlot
final LuaValue
Get a value in a table including metatag processing usingINDEX
.Greater than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returningLuaValue
.boolean
boolean
boolean
Greater than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.Greater than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returningLuaValue
.boolean
boolean
boolean
Greater than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.final void
Set a hashtable valuestatic int
Find the hashtable slot index to use.final Varargs
Get the next element after a particular key in the contiguous array part of a tablevoid
LuaValue.initupvalue1
(LuaValue env) Hook for implementations such as LuaJC to load the environment of the main chunk into the first upvalue location.final void
Insert an element at a position in a list-tableCallthis
with variable arguments, including metatag processing, and retain all return values in aVarargs
.Callthis
with variable arguments, including metatag processing, and retain all return values in aVarargs
.LuaValue.invokemethod
(LuaValue name) Call named method onthis
with 0 arguments, including metatag processing, and retain all return values in aVarargs
.LuaValue.invokemethod
(LuaValue name, Varargs args) Call named method onthis
with variable arguments, including metatag processing, and retain all return values in aVarargs
.boolean
boolean
boolean
boolean
boolean
boolean
Compare given key with first()'s key; return true if equal.boolean
static LuaTable
Construct aLuaTable
initialized with supplied array values.static LuaTable
Construct aLuaTable
initialized with supplied array values.Globals.load
(InputStream is, String chunkname, String mode, LuaValue environment) Load the content form an input stream as a binary chunk or text file.Convert the prototype into a LuaFunction with the supplied environment.Load a library instance by calling it with and empty string as the modname, and this Globals as the environment.Less than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returningLuaValue
.boolean
boolean
boolean
Less than: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.Less than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returningLuaValue
.boolean
boolean
boolean
Less than or equals: Perform numeric or string comparison with another value of unknown type, including metatag processing, and returning java boolean.Get particular metatag, or returnNIL
if it doesn't existCall named method onthis
with 0 arguments, including metatag processing, and return only the first return value.Call named method onthis
with 1 argument, including metatag processing, and return only the first return value.Call named method onthis
with 2 arguments, including metatag processing, and return only the first return value.Call named method onthis
with 1 argument, including metatag processing, and return only the first return value.Call named method onthis
with 2 arguments, including metatag processing, and return only the first return value.Modulo: Perform numeric modulo operation with another value of unknown type, including metatag processing.Multiply: Perform numeric multiply operation with another value of unknown type, including metatag processing.Notquals: Perform inequality comparison with another value including metatag processing usingEQ
.boolean
Notquals: Perform inequality comparison with another value including metatag processing usingEQ
.final Varargs
Get the next element after a particular key in the tablefinal LuaValue
Perform argument check that this is not nil or none.Return argument i as a LuaValue if it exists, ordefval
.Perform booleanor
with another operand, based on lua rules for boolean evaluation.Raise to power: Raise this value to a power including metatag processing.static void
Print.printStack
(LuaValue[] stack, int top, Varargs varargs) static void
Print.printState
(LuaClosure cl, int pc, LuaValue[] stack, int top, Varargs varargs) Print the state of aLuaClosure
that is being executedboolean
boolean
final boolean
boolean
Equals: Perform direct equality comparison with another value without metatag processing.boolean
final LuaValue
Get a value in a table without metatag processing.void
void
caller must ensure key is not nilvoid
Set a value in a table without metatag processing.void
Set a value in a table without metatag processing.void
Set a value in a table without metatag processing.com.prineside.luaj.LuaTable.Entry
com.prineside.luaj.LuaTable.Entry
com.prineside.luaj.LuaTable.Entry
void
final void
caller must ensure key is not nilSet the value of this Slot's first Entry, if possible, or return a new Slot whose first entry has the given value.void
void
Set a value in a table without metatag processing usingNEWINDEX
.void
Set a value in a table without metatag processing usingNEWINDEX
.void
Set a value in a table without metatag processing usingNEWINDEX
.abstract LuaTable.Slot
void
Globals.setErrorFunc
(LuaValue v) LuaTable.setmetatable
(LuaValue metatable) final LuaValue
LuaUserdata.setmetatable
(LuaValue metatable) LuaValue.setmetatable
(LuaValue metatable) Set the metatable for thisLuaValue
Set buffer contents as aLuaValue
final void
Set the value of the upvaluefinal void
Sort the table using a comparator.int
int
Perform string comparison with another value of any type using string comparison based on byte values.Subtract: Perform numeric subtract operation with another value of unknown type, including metatag processing.static LuaTable
Construct aLuaTable
initialized with supplied named values.static LuaTable
Construct aLuaTable
initialized with supplied named values and sequential elements.static LuaTable
Construct aLuaTable
initialized with supplied named values and sequential elements in an array part and as varargs.static Varargs
LuaValue.tailcallOf
(LuaValue func, Varargs args) Construct aTailcallVarargs
around a function and arguments.boolean
Perform end-condition test in for-loop processing.static LuaUserdata
LuaValue.userdataOf
(Object o, LuaValue metatable) Construct a LuaUserdata for an object with a user supplied metatable.static Varargs
static Varargs
static Varargs
static Varargs
static Varargs
static Varargs
void
LuaValue.NillableSerializer.writeClassAndObject
(Kryo kryo, Output output, LuaValue object) void
LuaValue.NillableSerializer.writeClassAndObject
(Kryo kryo, Output output, LuaValue[] objects) Constructors in com.prineside.luaj with parameters of type LuaValueModifierConstructorDescriptionCreate buffer with specified initial valueFPrototype
(LuaValue[] k, int[] code, FPrototype[] p, short[] lineinfo, LocVars[] locvars, Upvaldesc[] upvalues, LuaString source, short linedefined, short lastlinedefined, byte numparams, boolean is_vararg, byte maxstacksize) LuaClosure
(FPrototype p, LuaValue env) Create a closure around a Prototype with a specific environment.Construct a LuaError with a LuaValue as the message object, and level to draw line number information from.Construct table with named and unnamed parts.LuaUserdata
(Object obj, LuaValue metatable) TailcallVarargs
(LuaValue f, Varargs args) Create an upvalue relative to a stackConstruct a table with weak keys, weak values, or both -
Uses of LuaValue in com.prineside.luaj.ast
Fields in com.prineside.luaj.ast declared as LuaValueModifier and TypeFieldDescriptionVariable.initialValue
When hasassignments == false, and the initial value is a constant, this is the initial valuefinal LuaValue
Exp.Constant.value
Methods in com.prineside.luaj.ast with parameters of type LuaValueConstructors in com.prineside.luaj.ast with parameters of type LuaValue -
Uses of LuaValue in com.prineside.luaj.compiler
Methods in com.prineside.luaj.compiler that return LuaValueModifier and TypeMethodDescriptionLuaC.load
(InputStream stream, String chunkname, Globals globals) Deprecated.Use Globals.load(InputString, String, String) instead, or LuaC.compile(InputStream, String) and construct LuaClosure directly.Methods in com.prineside.luaj.compiler with parameters of type LuaValueModifier and TypeMethodDescription -
Uses of LuaValue in com.prineside.luaj.debug
Methods in com.prineside.luaj.debug with parameters of type LuaValueModifier and TypeMethodDescriptionvoid
CallStack.onCall
(LuaClosure function, Varargs varargs, LuaValue[] stack) -
Uses of LuaValue in com.prineside.luaj.lib
Subclasses of LuaValue in com.prineside.luaj.libModifier and TypeClassDescriptionclass
Subclass ofLibFunction
which implements the lua basic library functions.static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
class
Subclass of LibFunction that implements the Lua standardbit32
library.static final class
static final class
final class
static final class
class
Abstract base class extendingLibFunction
which implements the core of the lua standardio
library.static final class
class
Subclass ofLuaFunction
common to Java functions exposed to lua.class
Subclass ofLibFunction
which implements the lua standardmath
library.static final class
static final class
static final class
static final class
static final class
static final class
static final class
static class
static final class
static class
static class
static class
static final class
static final class
static class
static class
static final class
static final class
static final class
class
Abstract base class for Java function implementations that take one argument and return one value.class
Subclass ofLibFunction
which implements the standard luaos
library.static class
class
Subclass ofLibFunction
which implements the lua standard package and module library functions.static class
static class
Called second Calls _G.package.searchpath(name, _G.package.path) and then globals.loadfile() if foundstatic class
Called first Searches in preloaded packages (_G.package.preload table)static class
require (modname) Loads the given module.static class
class
Subclass ofLibFunction
which implements the lua standardstring
library.static final class
string.byte (s [, i [, j]]) Returns the internal numerical codes of the characters s[i], s[i+1], ..., s[j].static final class
string.char (...) Receives zero or more integers.static final class
static final class
static final class
string.dump (function[, stripDebug]) Returns a string containing a binary representation of the given function, so that a later loadstring on this string returns a copy of the function.static final class
static final class
string.find (s, pattern [, init [, plain]]) Looks for the first match of pattern in the string s.static final class
string.format (formatstring, ...) Returns a formatted version of its variable number of arguments following the description given in its first argument (which must be a string).static final class
string.gmatch (s, pattern) Returns an iterator function that, each time it is called, returns the next captures from pattern over string s.static final class
string.gsub (s, pattern, repl [, n]) Returns a copy of s in which all (or the first n, if given) occurrences of the pattern have been replaced by a replacement string specified by repl, which may be a string, a table, or a function.static final class
string.len (s) Receives a string and returns its length.static final class
string.lower (s) Receives a string and returns a copy of this string with all uppercase letters changed to lowercase.static final class
string.match (s, pattern [, init]) Looks for the first match of pattern in the string s.static final class
string.rep (s, n) Returns a string that is the concatenation of n copies of the string s.static final class
static final class
static final class
string.reverse (s) Returns a string that is the string s reversed.static final class
static final class
static final class
string.sub (s, i [, j]) Returns the substring of s that starts at i and continues until j; i and j may be negative.static final class
static final class
string.upper (s) Receives a string and returns a copy of this string with all lowercase letters changed to uppercase.class
Subclass ofLibFunction
which implements the lua standardtable
library.static class
static class
static class
static class
static class
static class
class
Abstract base class for Java function implementations that take two arguments and return one value.class
Abstract base class for Java function implementations that take two arguments and return one value.class
Abstract base class for Java function implementations that takes varaiable arguments and returns multiple return values.class
Abstract base class for Java function implementations that take no arguments and return one value.Methods in com.prineside.luaj.lib that return LuaValueModifier and TypeMethodDescriptionPerform one-time initialization on the library by adding base functions to the supplied environment, and returning it as the return value.BaseLib.getmetatable.call()
BaseLib.rawequal.call()
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.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.LibFunction.call()
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.MathLib.random.call()
final LuaValue
OneArgFunction.call()
abstract LuaValue
final LuaValue
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.Perform one-time initialization on the library by adding package functions to the supplied environment, and returning it as the return value.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.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.final LuaValue
ThreeArgFunction.call()
final LuaValue
abstract LuaValue
final LuaValue
TwoArgFunction.call()
final LuaValue
abstract LuaValue
VarArgFunction.call()
abstract LuaValue
ZeroArgFunction.call()
static LuaValue
MathLib.dpow
(double a, double b) compute power using installed math library, or default if there is no math library installedstatic LuaValue
IoLib.freadall
(com.prineside.luaj.lib.IoLib.File f) static LuaValue
IoLib.freadbytes
(com.prineside.luaj.lib.IoLib.File f, int count) static LuaValue
IoLib.freadline
(com.prineside.luaj.lib.IoLib.File f, boolean withend) static LuaValue
IoLib.freadnumber
(com.prineside.luaj.lib.IoLib.File f) static LuaValue
IoLib.freaduntil
(com.prineside.luaj.lib.IoLib.File f, boolean lineonly, boolean withend) Methods in com.prineside.luaj.lib with parameters of type LuaValueModifier and TypeMethodDescriptionIoLib._file_close
(LuaValue file) IoLib._file_flush
(LuaValue file) IoLib._file_read
(LuaValue file, Varargs subargs) IoLib._file_seek
(LuaValue file, String whence, int offset) IoLib._file_setvbuf
(LuaValue file, String mode, int size) IoLib._file_write
(LuaValue file, Varargs subargs) IoLib._io_output
(LuaValue filename) IoLib._lines_iter
(LuaValue file, boolean toclose, Varargs args) Perform one-time initialization on the library by adding base functions to the supplied environment, and returning it as the return value.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.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.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.abstract LuaValue
final LuaValue
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.Perform one-time initialization on the library by adding package functions to the supplied environment, and returning it as the return value.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.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.final LuaValue
abstract LuaValue
final LuaValue
abstract LuaValue
Load from a named file, returning the chunk or nil,error of can't loadBaseLib.loadStream
(InputStream is, String chunkname, String mode, LuaValue env) -
Uses of LuaValue in com.prineside.luaj.lib.jse
Subclasses of LuaValue in com.prineside.luaj.lib.jseModifier and TypeClassDescriptionfinal class
final class
LuaValue that represents a Java class.static final class
static final class
A Java method as an object.final class
LuaValue that represents a particular public Java constructor.class
LuaValue that represents a Java instance.class
Java method or constructor.final class
LuaValue that represents a Java method.static final class
final class
Subclass ofBaseLib
andLibFunction
which implements the lua basic library functions and provides a directory basedResourceFinder
as theGlobals.finder
.class
Subclass ofIoLib
and thereforeLibFunction
which implements the lua standardio
library for the JSE platform.final class
Subclass ofLibFunction
which implements the lua standardmath
library.static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
class
Subclass ofLibFunction
which implements the standard luaos
library.final class
final class
Fields in com.prineside.luaj.lib.jse declared as LuaValueMethods in com.prineside.luaj.lib.jse that return LuaValueModifier and TypeMethodDescriptionJavaClass.call()
JavaMethod.call()
JavaMethod.Overload.call()
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.Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.static LuaValue
Coerse a Java object to a corresponding lua value.JavaClass.getConstructor()
JavaMethod.Overload.invokeBestMethod
(Object instance, Varargs args) JavaArray.len()
JavaInstance.len()
Methods in com.prineside.luaj.lib.jse that return types with arguments of type LuaValueMethods in com.prineside.luaj.lib.jse with parameters of type LuaValueModifier and TypeMethodDescriptionPerform 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.Perform one-time initialization on the library by creating a table containing the library functions, adding that table to the supplied environment, adding the table to package.loaded, and returning table as the return value.static Object
Coerce a LuaValue value to a specified java classJavaClass.getObjectFieldOrMethod
(LuaValue key) void
void
void
-
Uses of LuaValue in com.prineside.tdi2.managers.script
Subclasses of LuaValue in com.prineside.tdi2.managers.scriptModifier and TypeClassDescriptionclass
Read-only LuaTable which stores a part of the class tree and allows to be properly serialized in case user stores a part of the tree in a separate variablefinal class
Read-only LuaTable which stores all aliases (shortcuts) to the classesclass
Fields in com.prineside.tdi2.managers.script declared as LuaValueMethods in com.prineside.tdi2.managers.script that return LuaValueModifier and TypeMethodDescriptionClassTreeLuaTable.remove
(int pos) GlobalCLuaTable.remove
(int pos) ReadOnlyLuaTable.remove
(int pos) ClassTreeLuaTable.setmetatable
(LuaValue metatable) GlobalCLuaTable.setmetatable
(LuaValue metatable) ReadOnlyLuaTable.setmetatable
(LuaValue metatable) ClassTreeLuaTable.tostring()
GlobalCLuaTable.tostring()
Methods in com.prineside.tdi2.managers.script with parameters of type LuaValueModifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
void
void
ClassTreeLuaTable.setmetatable
(LuaValue metatable) GlobalCLuaTable.setmetatable
(LuaValue metatable) ReadOnlyLuaTable.setmetatable
(LuaValue metatable) Constructors in com.prineside.tdi2.managers.script with parameters of type LuaValueModifierConstructorDescriptionClassTreeLuaTable
(LuaValue table) Copies the table into ReadOnly recursivelyGlobalCLuaTable
(LuaValue table) Copies the table into ReadOnly recursivelyReadOnlyLuaTable
(LuaValue table) Copies the table into ReadOnly recursively -
Uses of LuaValue in com.prineside.tdi2.utils
Methods in com.prineside.tdi2.utils with parameters of type LuaValue