A B C D E G I L M N O P R S T U W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- apply(Consumer<Bindings>) - Method in interface me.lucko.scriptcontroller.bindings.BindingsBuilder
-
Applies an action to this builder
B
- bind(AutoCloseable) - Method in interface me.lucko.scriptcontroller.closable.CompositeAutoClosable
-
Binds an
AutoCloseable
with this composite closable. - bindAll(AutoCloseable...) - Method in interface me.lucko.scriptcontroller.closable.CompositeAutoClosable
-
Binds all given
AutoCloseable
with this composite closable. - bindAll(Iterable<? extends AutoCloseable>) - Method in interface me.lucko.scriptcontroller.closable.CompositeAutoClosable
-
Binds all given
AutoCloseable
with this composite closable. - BindingsBuilder - Interface in me.lucko.scriptcontroller.bindings
-
Chainable bindings builder.
- BindingsSupplier - Interface in me.lucko.scriptcontroller.bindings
-
Supplies a set of bindings for scripts to use at runtime.
- build() - Method in interface me.lucko.scriptcontroller.bindings.BindingsBuilder
-
Returns the modified
Bindings
instance - build() - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Builds a new
EnvironmentSettings
instance. - build() - Method in interface me.lucko.scriptcontroller.ScriptController.Builder
-
Builds a new
ScriptController
from the settings defined in this builder - builder() - Static method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings
-
Creates a new
EnvironmentSettings.Builder
. - builder() - Static method in class me.lucko.scriptcontroller.internal.ScriptControllerImpl
-
Deprecated.
- builder() - Static method in interface me.lucko.scriptcontroller.ScriptController
-
Creates a new
ScriptController.Builder
using the internal implementation.
C
- clear() - Method in interface me.lucko.scriptcontroller.exports.Export
-
Clears the export
- close() - Method in interface me.lucko.scriptcontroller.closable.CompositeAutoClosable
-
Closes this composite resource.
- close() - Method in class me.lucko.scriptcontroller.environment.loader.DelegateScriptLoader
- close() - Method in interface me.lucko.scriptcontroller.environment.loader.ScriptLoader
- close() - Method in interface me.lucko.scriptcontroller.environment.registry.ScriptRegistry
- closeAndReportExceptions() - Method in interface me.lucko.scriptcontroller.closable.CompositeAutoClosable
-
Closes this composite resource, but simply prints any resultant exceptions instead of rethrowing them.
- closeSilently() - Method in interface me.lucko.scriptcontroller.closable.CompositeAutoClosable
-
Closes this composite resource, but doesn't rethrow or print any exceptions.
- CompositeAutoClosable - Interface in me.lucko.scriptcontroller.closable
-
Represents an
AutoCloseable
made up of several otherAutoCloseable
s. - CompositeClosingException - Exception in me.lucko.scriptcontroller.closable
-
Exception thrown to propagate exceptions thrown by
CompositeAutoClosable.close()
. - CompositeClosingException(List<? extends Throwable>) - Constructor for exception me.lucko.scriptcontroller.closable.CompositeClosingException
- computeIfAbsent(Supplier<? extends T>) - Method in interface me.lucko.scriptcontroller.exports.Export
-
Uses the provided function to compute a value if one isn't already present.
- containsValue() - Method in interface me.lucko.scriptcontroller.exports.Export
-
Gets if this export has a value
- create() - Static method in interface me.lucko.scriptcontroller.closable.CompositeAutoClosable
-
Creates a new standalone
CompositeAutoClosable
. - create() - Static method in interface me.lucko.scriptcontroller.environment.registry.ScriptRegistry
- create() - Static method in interface me.lucko.scriptcontroller.exports.ExportRegistry
-
Creates a new standalone
ExportRegistry
. - create(SystemLogger, Script) - Static method in interface me.lucko.scriptcontroller.logging.ScriptLogger
D
- defaultEnvironmentSettings(EnvironmentSettings) - Method in interface me.lucko.scriptcontroller.ScriptController.Builder
-
Defines the default
EnvironmentSettings
to use when this controller creates newScriptEnvironment
s. - defaults() - Static method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings
-
Returns a default set of environment settings
- defaultSettings() - Static method in class me.lucko.scriptcontroller.internal.ScriptControllerImpl
-
Deprecated.
- DelegateScriptLoader - Class in me.lucko.scriptcontroller.environment.loader
-
A
ScriptLoader
which delegates calls to a parent, but keeps track of the files watched via its instance. - DelegateScriptLoader(ScriptLoader) - Constructor for class me.lucko.scriptcontroller.environment.loader.DelegateScriptLoader
- depend(String) - Method in interface me.lucko.scriptcontroller.environment.script.Script
-
Marks that this script depends on another script.
- depend(Path) - Method in interface me.lucko.scriptcontroller.environment.script.Script
-
Marks that this script depends on another script.
E
- EnvironmentScriptLoader - Interface in me.lucko.scriptcontroller.environment.loader
-
The environments script loader
- EnvironmentSettings - Interface in me.lucko.scriptcontroller.environment.settings
-
Represents the settings for a given
ScriptEnvironment
. - EnvironmentSettings.Builder - Interface in me.lucko.scriptcontroller.environment.settings
-
Builds
EnvironmentSettings
- error(Object...) - Method in interface me.lucko.scriptcontroller.logging.ScriptLogger
- Export<T> - Interface in me.lucko.scriptcontroller.exports
-
A namespaced value wrapper.
- Export.Pointer<T> - Interface in me.lucko.scriptcontroller.exports
-
A pointer to the value of an export.
- ExportRegistry - Interface in me.lucko.scriptcontroller.exports
-
A registry of
Export
s shared between scripts.
G
- get() - Method in interface me.lucko.scriptcontroller.exports.Export
-
Gets the current value of the export
- get(String) - Method in interface me.lucko.scriptcontroller.exports.ExportRegistry
-
Gets an export
- get(T) - Method in interface me.lucko.scriptcontroller.exports.Export
-
Gets the current value of the export, or returns the other if a value isn't present.
- getAll() - Method in interface me.lucko.scriptcontroller.environment.registry.ScriptRegistry
-
Gets all scripts known to this registry
- getAll() - Method in interface me.lucko.scriptcontroller.exports.ExportRegistry
-
Returns a collection of all known exports.
- getCauses() - Method in exception me.lucko.scriptcontroller.closable.CompositeClosingException
- getClosables() - Method in interface me.lucko.scriptcontroller.environment.script.Script
-
Gets the scripts composite closable registry.
- getController() - Method in interface me.lucko.scriptcontroller.environment.ScriptEnvironment
-
Gets the script controller which created this environment
- getDependencies() - Method in interface me.lucko.scriptcontroller.environment.script.Script
-
Gets the other scripts depended on by this script.
- getDirectory() - Method in interface me.lucko.scriptcontroller.environment.ScriptEnvironment
-
Gets the environments root scripts directory
- getEnvironment() - Method in class me.lucko.scriptcontroller.environment.loader.DelegateScriptLoader
- getEnvironment() - Method in interface me.lucko.scriptcontroller.environment.loader.ScriptLoader
-
Gets the script environment this loader is operating in
- getEnvironments() - Method in class me.lucko.scriptcontroller.internal.ScriptControllerImpl
- getEnvironments() - Method in interface me.lucko.scriptcontroller.ScriptController
-
Gets the
ScriptEnvironment
s being processed by the controller - getExportRegistry() - Method in interface me.lucko.scriptcontroller.environment.ScriptEnvironment
-
Gets the export registry for this environment
- getLoader() - Method in interface me.lucko.scriptcontroller.environment.ScriptEnvironment
-
Gets the script loader used by this environment.
- getLogger() - Method in interface me.lucko.scriptcontroller.environment.script.Script
-
Gets the scripts logger instance
- getName() - Method in interface me.lucko.scriptcontroller.environment.script.Script
- getPath() - Method in interface me.lucko.scriptcontroller.environment.script.Script
-
Gets the path of the script.
- getScript(Path) - Method in interface me.lucko.scriptcontroller.environment.registry.ScriptRegistry
-
Gets a script by path
- getScriptRegistry() - Method in interface me.lucko.scriptcontroller.environment.ScriptEnvironment
-
Gets the script registry, containing all loaded scripts within this environment
- getSettings() - Method in interface me.lucko.scriptcontroller.environment.ScriptEnvironment
-
Gets the environment settings
I
- info(Object...) - Method in interface me.lucko.scriptcontroller.logging.ScriptLogger
- info(String) - Method in interface me.lucko.scriptcontroller.logging.SystemLogger
- initScript(String) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Defines the init script for the environment
L
- loadExecutor(ScriptLoadingExecutor) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Define the executor service used to setup task to poll scripts for changes and load new scripts.
- log(Object...) - Method in interface me.lucko.scriptcontroller.logging.ScriptLogger
- logger(SystemLogger) - Method in interface me.lucko.scriptcontroller.ScriptController.Builder
-
Defines the logger to use.
M
- me.lucko.scriptcontroller - package me.lucko.scriptcontroller
- me.lucko.scriptcontroller.bindings - package me.lucko.scriptcontroller.bindings
- me.lucko.scriptcontroller.closable - package me.lucko.scriptcontroller.closable
- me.lucko.scriptcontroller.environment - package me.lucko.scriptcontroller.environment
- me.lucko.scriptcontroller.environment.loader - package me.lucko.scriptcontroller.environment.loader
- me.lucko.scriptcontroller.environment.registry - package me.lucko.scriptcontroller.environment.registry
- me.lucko.scriptcontroller.environment.script - package me.lucko.scriptcontroller.environment.script
- me.lucko.scriptcontroller.environment.settings - package me.lucko.scriptcontroller.environment.settings
- me.lucko.scriptcontroller.exports - package me.lucko.scriptcontroller.exports
- me.lucko.scriptcontroller.internal - package me.lucko.scriptcontroller.internal
- me.lucko.scriptcontroller.logging - package me.lucko.scriptcontroller.logging
- mergeSettingsFrom(EnvironmentSettings) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Applies the settings from the give instance to this builder
N
- name() - Method in interface me.lucko.scriptcontroller.exports.Export
-
Gets the name of the export
- newSettingsBuilder() - Static method in class me.lucko.scriptcontroller.internal.ScriptControllerImpl
-
Deprecated.
O
- ofMap(Map<String, Object>) - Static method in interface me.lucko.scriptcontroller.bindings.BindingsSupplier
-
Returns a
BindingsSupplier
that encapsulates a map of objects.
P
- pointer() - Method in interface me.lucko.scriptcontroller.exports.Export
-
Returns a pointer to this export
- pointer(String) - Method in interface me.lucko.scriptcontroller.exports.ExportRegistry
-
Gets a pointer to an export
- pollRate(long, TimeUnit) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Define how often the script loader should poll scripts for updates
- preload() - Method in interface me.lucko.scriptcontroller.environment.loader.EnvironmentScriptLoader
-
Tries to recursively load scripts.
- printAllStackTraces() - Method in exception me.lucko.scriptcontroller.closable.CompositeClosingException
- put(String, Object) - Method in interface me.lucko.scriptcontroller.bindings.BindingsBuilder
-
Adds a binding to the builder
- put(T) - Method in interface me.lucko.scriptcontroller.exports.Export
-
Sets the value of the export
- putIfAbsent(T) - Method in interface me.lucko.scriptcontroller.exports.Export
-
Sets the value of the export if a value isn't already present, then returns the export
R
- register(Script) - Method in interface me.lucko.scriptcontroller.environment.registry.ScriptRegistry
-
Registers a script
- remove(String) - Method in interface me.lucko.scriptcontroller.exports.ExportRegistry
-
Deletes an export
- run() - Method in interface me.lucko.scriptcontroller.environment.loader.EnvironmentScriptLoader
-
Script loading loop
- runExecutor(Executor) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Define the executor used to run scripts
S
- scheduleAtFixedRate(Runnable, long, TimeUnit) - Method in interface me.lucko.scriptcontroller.environment.loader.ScriptLoadingExecutor
-
Schedules a task to run at a fixed rate, with the first execution occurring with no delay.
- Script - Interface in me.lucko.scriptcontroller.environment.script
-
Represents an individual script
- ScriptController - Interface in me.lucko.scriptcontroller
-
Controls the execution and management of
ScriptEnvironment
s. - ScriptController.Builder - Interface in me.lucko.scriptcontroller
-
Builds a
ScriptController
- ScriptControllerImpl - Class in me.lucko.scriptcontroller.internal
- ScriptEnvironment - Interface in me.lucko.scriptcontroller.environment
-
Represents an isolated environment in which scripts run Each environment operates within a given root
directory
, under aScriptController
. - ScriptLoader - Interface in me.lucko.scriptcontroller.environment.loader
-
An object capable of loadings scripts and monitoring them for updates.
- ScriptLoadingExecutor - Interface in me.lucko.scriptcontroller.environment.loader
-
A simplified scheduler for
ScriptLoader
s. - ScriptLogger - Interface in me.lucko.scriptcontroller.logging
-
A scripts logger instance
- ScriptRegistry - Interface in me.lucko.scriptcontroller.environment.registry
-
A registry of
Script
s - setupNewEnvironment(Path) - Method in interface me.lucko.scriptcontroller.ScriptController
-
Sets up a new
ScriptEnvironment
in the given load directory. - setupNewEnvironment(Path, EnvironmentSettings) - Method in class me.lucko.scriptcontroller.internal.ScriptControllerImpl
- setupNewEnvironment(Path, EnvironmentSettings) - Method in interface me.lucko.scriptcontroller.ScriptController
-
Sets up a new
ScriptEnvironment
in the given load directory. - severe(Object...) - Method in interface me.lucko.scriptcontroller.logging.ScriptLogger
- severe(String) - Method in interface me.lucko.scriptcontroller.logging.SystemLogger
- shutdown() - Method in class me.lucko.scriptcontroller.internal.ScriptControllerImpl
- shutdown() - Method in interface me.lucko.scriptcontroller.ScriptController
-
Shuts down this script controller
- singleBinding(String, Object) - Static method in interface me.lucko.scriptcontroller.bindings.BindingsSupplier
-
Returns a
BindingsSupplier
that encapsulates a single binding. - supplyBindings(Script, BindingsBuilder) - Method in interface me.lucko.scriptcontroller.bindings.BindingsSupplier
-
Supplies this suppliers bindings for the given script.
- SystemLogger - Interface in me.lucko.scriptcontroller.logging
-
Represents a bridge between the platforms logger and a ScriptController.
T
- toBuilder() - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings
-
Returns a builder encapsulating the properties already defined by this instance
U
- unregister(Script) - Method in interface me.lucko.scriptcontroller.environment.registry.ScriptRegistry
-
Unregisters a script
- unwatch(String...) - Method in interface me.lucko.scriptcontroller.environment.loader.ScriptLoader
-
Unloads a script
- unwatchAll(Collection<String>) - Method in class me.lucko.scriptcontroller.environment.loader.DelegateScriptLoader
- unwatchAll(Collection<String>) - Method in interface me.lucko.scriptcontroller.environment.loader.ScriptLoader
-
Unloads a collection of scripts
- usingJavaLogger(Logger) - Static method in interface me.lucko.scriptcontroller.logging.SystemLogger
-
Creates a
SystemLogger
using a java logger - usingJavaScheduler(ScheduledExecutorService) - Static method in interface me.lucko.scriptcontroller.environment.loader.ScriptLoadingExecutor
-
Creates a
ScriptLoadingExecutor
using a java executor service
W
- warn(Object...) - Method in interface me.lucko.scriptcontroller.logging.ScriptLogger
- warning(Object...) - Method in interface me.lucko.scriptcontroller.logging.ScriptLogger
- warning(String) - Method in interface me.lucko.scriptcontroller.logging.SystemLogger
- watch(String...) - Method in interface me.lucko.scriptcontroller.environment.loader.ScriptLoader
-
Loads and watches a script
- watchAll(Collection<String>) - Method in class me.lucko.scriptcontroller.environment.loader.DelegateScriptLoader
- watchAll(Collection<String>) - Method in interface me.lucko.scriptcontroller.environment.loader.ScriptLoader
-
Loads and watches a collection of scripts
- withBindings(BindingsSupplier) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Adds a bindings supplier to the settings
- withDefaultPackageImport(String) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Marks that a
Package
should be imported by default. - withDefaultPackageImports(Collection<String>) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Marks that
Package
s should be imported by default. - withDefaultTypeImport(String) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Marks that a
Class
should be imported by default. - withDefaultTypeImports(Collection<String>) - Method in interface me.lucko.scriptcontroller.environment.settings.EnvironmentSettings.Builder
-
Marks that
Class
es should be imported by default. - withDirectory(Path) - Method in interface me.lucko.scriptcontroller.ScriptController.Builder
-
Add a directory to be handled by this script controller
- wrap(Bindings) - Static method in interface me.lucko.scriptcontroller.bindings.BindingsBuilder
-
Creates a new
BindingsBuilder
All Classes All Packages