Skip to main content

LuaComponent

Complete API reference for LuaComponent, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Lua

Component: yes


public class LuaComponent extends Component

Constructors

SignatureDescription
LuaComponent(LuaComponent)Executes LuaComponent and returns after the underlying engine call finishes.
LuaComponent(Engine)Executes LuaComponent and returns after the underlying engine call finishes.
LuaComponent()Creates a new instance of LuaComponent.

Attributes

NameTypeDescription
instanceLuaComponentRepresents the instance value stored on this instance. Read or assign to update the property.

Methods

SignatureReturnsDescription
get(String)LuaValueReturns the current value.
set(String, LuaValue)voidSets or updates the the value.
set(String, float)voidSets or updates the the value.
set(String, double)voidSets or updates the the value.
set(String, int)voidSets or updates the the value.
set(String, long)voidSets or updates the the value.
set(String, String)voidSets or updates the the value.
set(String, boolean)voidSets or updates the the value.
getFloat(String)floatReturns the current float.
getDouble(String)doubleReturns the current double.
getInt(String)floatReturns the current int.
getLong(String)longReturns the current long.
getString(String)StringReturns the current string.
getBoolean(String)booleanReturns the current boolean.
getVar(String)ValueObjectReturns the current var.
setVar(String, ValueObject)voidSets or updates the var.
setFloat(String, float)voidSets or updates the float.
setDouble(String, double)voidSets or updates the double.
setInt(String, int)voidSets or updates the int.
setLong(String, long)voidSets or updates the long.
setString(String, String)voidSets or updates the string.
setBoolean(String, boolean)voidSets or updates the boolean.
call(String)voidPerforms the call operation using the provided parameters (name).
call(String, int)voidPerforms the call operation using the provided parameters (name, args).
call(String, float)voidPerforms the call operation using the provided parameters (name, args).
call(String, String)voidPerforms the call operation using the provided parameters (name, args).
call(String, boolean)voidPerforms the call operation using the provided parameters (name, args).
call(String, Object...)voidPerforms the call operation using the provided parameters (name, args).