Package com.hk.lua
Enum LuaLibraryPackage
- All Implemented Interfaces:
BiConsumer<Environment,LuaObject>
,Lua.LuaMethod
,Serializable
,Comparable<LuaLibraryPackage>
,java.lang.constant.Constable
public enum LuaLibraryPackage extends Enum<LuaLibraryPackage> implements BiConsumer<Environment,LuaObject>, Lua.LuaMethod
LuaLibraryPackage class.
- Author:
- theKayani
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static String
EXKEY_PATH
ConstantEXKEY_PATH="package.path"
static String
EXKEY_PRELOAD_PREFIX
ConstantEXKEY_PRELOAD_PREFIX="package.preload."
static String
EXKEY_TEMPLATE_MARK
ConstantEXKEY_TEMPLATE_MARK="package.template.mark"
static String
EXKEY_TEMPLATE_SEP
ConstantEXKEY_TEMPLATE_SEP="package.template.sep"
-
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 LuaLibraryPackage
valueOf(String name)
Returns the enum constant of this type with the specified name.static LuaLibraryPackage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
EXKEY_TEMPLATE_SEP
ConstantEXKEY_TEMPLATE_SEP="package.template.sep"
- See Also:
- Constant Field Values
-
EXKEY_TEMPLATE_MARK
ConstantEXKEY_TEMPLATE_MARK="package.template.mark"
- See Also:
- Constant Field Values
-
EXKEY_PATH
ConstantEXKEY_PATH="package.path"
- See Also:
- Constant Field Values
-
EXKEY_PRELOAD_PREFIX
ConstantEXKEY_PRELOAD_PREFIX="package.preload."
- 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
-