public class V8PathExecutor extends V8StringExecutor
Modifier and Type | Field and Description |
---|---|
protected java.nio.file.Path |
scriptPath
The Script path.
|
cachedData, scriptString
v8Runtime, v8ScriptOrigin
Constructor and Description |
---|
V8PathExecutor(V8Runtime v8Runtime,
java.nio.file.Path scriptPath)
Instantiates a new V8 path executor.
|
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
getScriptPath()
Gets script path.
|
java.lang.String |
getScriptString()
Gets script string.
|
compileV8Module, compileV8Script, compileV8ValueFunction, execute, getCachedData
getV8Runtime, getV8ScriptOrigin
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compileV8Module, compileV8ModuleVoid, compileV8Script, compileV8ScriptVoid, compileV8ValueFunction, compileV8ValueFunction, getResourceName, isModule, setModule, setResourceName, toObject, toV8Value
execute, executeBigInteger, executeBoolean, executeDouble, executeInteger, executeLong, executeObject, executeString, executeVoid, executeZonedDateTime
toObject
public V8PathExecutor(V8Runtime v8Runtime, java.nio.file.Path scriptPath) throws JavetException
v8Runtime
- the V8 runtimescriptPath
- the script pathJavetException
- the javet exceptionpublic java.nio.file.Path getScriptPath()
public java.lang.String getScriptString() throws JavetException
IV8Executor
getScriptString
in interface IV8Executor
getScriptString
in class V8StringExecutor
JavetException
- the javet exception