public final class ScriptsImpl extends DocumentWorkerObjectImpl implements Scripts
application| Constructor and Description |
|---|
ScriptsImpl(ApplicationImpl application,
AbstractTask task) |
ScriptsImpl(ApplicationImpl application,
AbstractTask task,
List<DocumentWorkerScript> scripts) |
| Modifier and Type | Method and Description |
|---|---|
Script |
add() |
Script |
add(int index) |
Script |
get(int index) |
int |
getCurrentScriptIndex(int previousIndex,
ScriptImpl script)
A script's position in the list could change if new scripts are inserted before it.
|
Task |
getTask() |
boolean |
isEmpty() |
Iterator<Script> |
iterator() |
void |
loadAll() |
void |
raiseEvent(String event,
boolean useReverseOrder,
Object... args)
Raises the specified event in all loaded scripts.
|
void |
raiseEventUntil(String event,
boolean useReverseOrder,
BooleanSupplier condition,
Object... args)
Raises the specified event in all of the loaded scripts, or until the specified condition is met.
|
int |
size() |
Stream<Script> |
stream() |
Stream<ScriptImpl> |
streamImpls() |
void |
uninstallAll() |
void |
unloadAll() |
getApplicationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicationforEach, spliteratorpublic ScriptsImpl(ApplicationImpl application, AbstractTask task)
public ScriptsImpl(ApplicationImpl application, AbstractTask task, List<DocumentWorkerScript> scripts) throws InvalidScriptException
InvalidScriptException@Nonnull public Stream<ScriptImpl> streamImpls()
public void uninstallAll()
uninstallAll in interface Scriptspublic int getCurrentScriptIndex(int previousIndex,
ScriptImpl script)
previousIndex - the index to start searching from; use 0 if it is not knownscript - the script to look for, which must be in the list of scriptspublic void loadAll()
throws ScriptException
ScriptExceptionpublic void unloadAll()
public void raiseEvent(String event, boolean useReverseOrder, Object... args)
event - the event to be raiseduseReverseOrder - controls the order in which the loaded scripts are calledargs - the arguments to be passed to the specified eventpublic void raiseEventUntil(String event, boolean useReverseOrder, BooleanSupplier condition, Object... args)
event - the event to be raiseduseReverseOrder - controls the order in which the loaded scripts are calledcondition - a condition which causes the event to stop being raised in the remaining scriptsargs - the arguments to be passed to the specified eventCopyright © 2016–2021 EntIT Software LLC, a Micro Focus company. All rights reserved.