public class HelperScript extends Object implements Script
EMPTY| Constructor and Description |
|---|
HelperScript(Path path,
SystemScriptLoader loader,
SystemScriptBindings systemBindings) |
| 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
|
void |
run() |
boolean |
terminate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbindWith, close, hasTerminated, ofpublic HelperScript(@Nonnull Path path, @Nonnull SystemScriptLoader loader, @Nonnull SystemScriptBindings systemBindings)
@Nonnull public String getName()
Script@Nonnull public Path getPath()
ScriptThe returned path is relative to the loader directory.
@Nonnull public SystemScriptBindings getBindings()
ScriptgetBindings in interface Script@Nonnull public ScriptLogger getLogger()
Scriptpublic Set<Path> getDependencies()
ScriptgetDependencies in interface Scriptpublic void depend(@Nonnull String path)
Scriptpublic void depend(@Nonnull Path path)
Scriptpublic boolean terminate()
terminate in interface TerminableCopyright © 2017. All rights reserved.