Class LuaLibraries
public final class LuaLibraries extends Object
This class contains all the different packages that have been
implemented into a Lua library. They also have their own respective
tables, if needs be, a new LuaLibrary
object can be
created to replace the imported table name.
This class doesn't import LuaLibraryG2D
or LuaLibrarySwing
in the off chance that they
don't have the proper classes/resources to initialize. Also not
every environment that would be imported into would contain those
"requirements"
-
Field Summary
Fields Modifier and Type Field Description static com.hk.lua.LuaLibrary<LuaLibraryFileSystem>
FILESYSTEM
ConstantFILESYSTEM
static com.hk.lua.LuaLibrary<LuaLibraryG2D>
G2D
ConstantG2D
static com.hk.lua.LuaLibrary<LuaLibraryHTTP>
HTTP
ConstantHTTP
static com.hk.lua.LuaLibrary<LuaLibrarySocket>
SOCKET
ConstantSOCKET
static com.hk.lua.LuaLibrary<LuaLibrarySwing>
SWING
ConstantSWING
static com.hk.lua.LuaLibrary<LuaLibraryUUID>
UUID
ConstantUUID
-
Method Summary
Modifier and Type Method Description static void
importAll(@NotNull com.hk.lua.LuaFactory factory)
Import the standardLua 5.3
libraries, that come withhklib
, as well as the additional libraries within this package.static void
importAll(@NotNull com.hk.lua.LuaInterpreter interp)
Import the standardLua 5.3
libraries, that come withhklib
, as well as the additional libraries within this package.static void
importOnlyExtra(@NotNull com.hk.lua.LuaFactory factory)
Import only the extra libraries within this package.static void
importOnlyExtra(@NotNull com.hk.lua.LuaInterpreter interp)
Import only the extra libraries within this package.
-
Field Details
-
Method Details
-
importAll
public static void importAll(@NotNull @NotNull com.hk.lua.LuaInterpreter interp)Import the standard
Lua 5.3
libraries, that come withhklib
, as well as the additional libraries within this package.Additional Libraries are:
- Parameters:
interp
- The environment to import the libraries into- See Also:
Lua.importStandard(LuaInterpreter)
-
importOnlyExtra
public static void importOnlyExtra(@NotNull @NotNull com.hk.lua.LuaInterpreter interp)Import only the extra libraries within this package.
Additional Libraries are:
- Parameters:
interp
- The environment to import the libraries into
-
importAll
public static void importAll(@NotNull @NotNull com.hk.lua.LuaFactory factory)Import the standard
Lua 5.3
libraries, that come withhklib
, as well as the additional libraries within this package.Once these are imported into the factory, they don't need to be imported into the retrieved interpreter object.
Additional Libraries are:
- Parameters:
factory
- The environment to import the libraries into- See Also:
Lua.importStandard(LuaFactory)
-
importOnlyExtra
public static void importOnlyExtra(@NotNull @NotNull com.hk.lua.LuaFactory factory)Import only the extra libraries within this package.
Additional Libraries are:
- Parameters:
factory
- The environment to import the libraries into
-