Package com.hk.lua
Enum LuaLibraryBasic
- All Implemented Interfaces:
BiConsumer<Environment,LuaObject>
,Lua.LuaMethod
,Serializable
,Comparable<LuaLibraryBasic>
,java.lang.constant.Constable
public enum LuaLibraryBasic extends Enum<LuaLibraryBasic> implements BiConsumer<Environment,LuaObject>, Lua.LuaMethod
LuaLibraryBasic class.
- Author:
- theKayani
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static String
EXKEY_OUTPUT
ConstantEXKEY_OUTPUT="system.out"
-
Method Summary
Modifier and Type Method Description void
accept(Environment env, LuaObject table)
accept.LuaObject
call(LuaInterpreter interp, LuaObject[] args)
Run a Java method, or function, wrapped as a LuaObjectstatic LuaLibraryBasic
valueOf(String name)
Returns the enum constant of this type with the specified name.static LuaLibraryBasic[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
EXKEY_OUTPUT
ConstantEXKEY_OUTPUT="system.out"
- See Also:
- Constant Field Values
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
call
Run a Java method, or function, wrapped as a LuaObject
- Specified by:
call
in interfaceLua.LuaMethod
- Parameters:
interp
- the interpreter executing this codeargs
- the arguments passed during execution- Returns:
- the result of the execution, if is null, will be converted into Lua nil.
-
accept
accept.
- Specified by:
accept
in interfaceBiConsumer<Environment,LuaObject>
- Parameters:
env
- a X objecttable
- a Y object
-