public class V8StringExecutor extends BaseV8Executor
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
cachedData
The Cached data.
|
protected java.lang.String |
scriptString
The Script string.
|
v8Runtime, v8ScriptOrigin| Constructor and Description |
|---|
V8StringExecutor(V8Runtime v8Runtime)
Instantiates a new V8 string executor.
|
V8StringExecutor(V8Runtime v8Runtime,
java.lang.String scriptString)
Instantiates a new V8 string executor.
|
V8StringExecutor(V8Runtime v8Runtime,
java.lang.String scriptString,
byte[] cachedData)
Instantiates a new V8 string executor.
|
| Modifier and Type | Method and Description |
|---|---|
V8Module |
compileV8Module(boolean resultRequired)
Compile V8 module.
|
V8Script |
compileV8Script(boolean resultRequired)
Compile V8 script.
|
V8ValueFunction |
compileV8ValueFunction(java.lang.String[] arguments,
V8ValueObject[] contextExtensions)
Compile V8 value function.
|
<T extends V8Value> |
execute(boolean resultRequired)
Execute and return V8 value if required.
|
byte[] |
getCachedData()
Get cached data.
|
java.lang.String |
getScriptString()
Gets script string.
|
getV8Runtime, getV8ScriptOriginclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompileV8Module, compileV8ModuleVoid, compileV8Script, compileV8ScriptVoid, compileV8ValueFunction, compileV8ValueFunction, getResourceName, isModule, setModule, setResourceName, toObject, toV8Valueexecute, executeBigInteger, executeBoolean, executeDouble, executeInteger, executeLong, executeObject, executeString, executeVoid, executeZonedDateTimetoObjectprotected byte[] cachedData
protected java.lang.String scriptString
public V8StringExecutor(V8Runtime v8Runtime)
v8Runtime - the V8 runtimepublic V8StringExecutor(V8Runtime v8Runtime, java.lang.String scriptString)
v8Runtime - the V8 runtimescriptString - the script stringpublic V8StringExecutor(V8Runtime v8Runtime, java.lang.String scriptString, byte[] cachedData)
v8Runtime - the V8 runtimescriptString - the script stringcachedData - the cached data@CheckReturnValue public V8Module compileV8Module(boolean resultRequired) throws JavetException
IV8ExecutorresultRequired - the result requiredJavetException - the javet exception@CheckReturnValue public V8Script compileV8Script(boolean resultRequired) throws JavetException
IV8ExecutorresultRequired - the result requiredJavetException - the javet exception@CheckReturnValue public V8ValueFunction compileV8ValueFunction(java.lang.String[] arguments, V8ValueObject[] contextExtensions) throws JavetException
IV8Executorarguments - the argumentscontextExtensions - the context extensionsJavetException - the javet exception@CheckReturnValue public <T extends V8Value> T execute(boolean resultRequired) throws JavetException
IV8ExecutableT - the type parameterresultRequired - the result requiredJavetException - the javet exceptionpublic byte[] getCachedData()
IV8Executorpublic java.lang.String getScriptString()
throws JavetException
IV8ExecutorJavetException - the javet exception