public class V8FileExecutor extends V8StringExecutor
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
scriptFile
The Script file.
|
cachedData, scriptString
v8Runtime, v8ScriptOrigin
Constructor and Description |
---|
V8FileExecutor(V8Runtime v8Runtime,
java.io.File scriptFile)
Instantiates a new V8 path executor.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getScriptFile()
Gets script file.
|
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 V8FileExecutor(V8Runtime v8Runtime, java.io.File scriptFile) throws JavetException
v8Runtime
- the V8 runtimescriptFile
- the script fileJavetException
- the javet exceptionpublic java.io.File getScriptFile()
public java.lang.String getScriptString() throws JavetException
IV8Executor
getScriptString
in interface IV8Executor
getScriptString
in class V8StringExecutor
JavetException
- the javet exception