public abstract class RemoteScriptSpec extends AbstractScriptSpec
engineType| Modifier | Constructor and Description |
|---|---|
protected |
RemoteScriptSpec(ScriptEngineType engineType) |
| Modifier and Type | Method and Description |
|---|---|
CompiledScript |
compile(Compilable compiler)
Compiles the script for later execution.
|
String |
getScript()
Returns the script represented by this specification.
|
protected abstract Reader |
openReader() |
create, getEngineType, isStatic, setScriptSpecField, toDocumentWorkerScriptprotected RemoteScriptSpec(ScriptEngineType engineType)
@Nonnull public CompiledScript compile(Compilable compiler) throws ScriptException
If the scripting engine hits an IOException when using the Reader then it wraps it in a ScriptException. By doing the same here the calling code can more easily handle both cases consistently.
compile in class AbstractScriptSpeccompiler - the engine to use to do the compilationScriptException - if compilation fails@Nonnull public String getScript() throws IOException
AbstractScriptSpecgetScript in class AbstractScriptSpecIOException - if the script could not be retrieved@Nonnull protected abstract Reader openReader() throws IOException
IOExceptionCopyright © 2016–2021 EntIT Software LLC, a Micro Focus company. All rights reserved.