public interface Script extends Terminable, Runnable
EMPTY| Modifier and Type | Method and Description |
|---|---|
void |
depend(Path path)
Marks that this script depends on another script.
|
void |
depend(String path)
Marks that this script depends on another script.
|
SystemScriptBindings |
getBindings()
Gets the initial bindings used by this script
|
Set<Path> |
getDependencies()
Gets the other scripts depended on by this script.
|
ScriptLogger |
getLogger()
Gets the scripts logger instance
|
String |
getName()
Gets the name of the script
|
Path |
getPath()
Gets the file this script instance was created from
|
bindWith, close, hasTerminated, of, terminate@Nonnull Path getPath()
The returned path is relative to the loader directory.
@Nonnull SystemScriptBindings getBindings()
@Nonnull ScriptLogger getLogger()
Set<Path> getDependencies()
void depend(@Nonnull String path)
path - the other scriptCopyright © 2017. All rights reserved.