LibraryRegistry class
Registry for all standard and user-defined libraries in a runtime.
A LuaRuntime owns a single registry. Register a Library instance and then call initializeLibrary, initializeLibraryByName, or initializeAll to expose it to scripts.
Constructors
- LibraryRegistry(LuaRuntime _interpreter)
Properties
Methods
-
initializeAll(
) → void - Initializes every registered library.
-
initializeLibrary(
Library library) → Value? - Initialize the provided library instance if it hasn't been already.
-
initializeLibraryByName(
String name) → Value? - Initialize a specific library by name (if registered).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
Library library) → void -
Registers
librarywith this runtime. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited