public interface IV8Executor extends IV8Executable
Modifier and Type | Method and Description |
---|---|
default V8Module |
compileV8Module()
Compile V8 module.
|
V8Module |
compileV8Module(boolean resultRequired)
Compile V8 module.
|
default void |
compileV8ModuleVoid()
Compile V8 module.
|
default V8Script |
compileV8Script()
Compile V8 script.
|
V8Script |
compileV8Script(boolean resultRequired)
Compile V8 script.
|
default void |
compileV8ScriptVoid()
Compile V8 script.
|
default V8ValueFunction |
compileV8ValueFunction()
Compile V8 value function.
|
default V8ValueFunction |
compileV8ValueFunction(java.lang.String[] arguments)
Compile V8 value function.
|
V8ValueFunction |
compileV8ValueFunction(java.lang.String[] arguments,
V8ValueObject[] contextExtensions)
Compile V8 value function.
|
byte[] |
getCachedData()
Get cached data.
|
default java.lang.String |
getResourceName()
Gets resource name.
|
java.lang.String |
getScriptString()
Gets script string.
|
V8Runtime |
getV8Runtime()
Gets V8 runtime.
|
V8ScriptOrigin |
getV8ScriptOrigin()
Gets V8 script origin.
|
default boolean |
isModule()
Is module boolean.
|
default IV8Executor |
setModule(boolean module)
Sets module.
|
default IV8Executor |
setResourceName(java.lang.String resourceName)
Sets resource name.
|
default <T,V extends V8Value> |
toObject(V v8Value)
Convert from V8 value to object.
|
default <T,V extends V8Value> |
toV8Value(T object)
Convert object to V8 value.
|
execute, execute, executeBigInteger, executeBoolean, executeDouble, executeInteger, executeLong, executeObject, executeString, executeVoid, executeZonedDateTime
toObject
@CheckReturnValue default V8Module compileV8Module() throws JavetException
JavetException
- the javet exception@CheckReturnValue V8Module compileV8Module(boolean resultRequired) throws JavetException
resultRequired
- the result requiredJavetException
- the javet exceptiondefault void compileV8ModuleVoid() throws JavetException
JavetException
- the javet exception@CheckReturnValue default V8Script compileV8Script() throws JavetException
JavetException
- the javet exception@CheckReturnValue V8Script compileV8Script(boolean resultRequired) throws JavetException
resultRequired
- the result requiredJavetException
- the javet exceptiondefault void compileV8ScriptVoid() throws JavetException
JavetException
- the javet exception@CheckReturnValue default V8ValueFunction compileV8ValueFunction() throws JavetException
JavetException
- the javet exception@CheckReturnValue default V8ValueFunction compileV8ValueFunction(java.lang.String[] arguments) throws JavetException
arguments
- the argumentsJavetException
- the javet exception@CheckReturnValue V8ValueFunction compileV8ValueFunction(java.lang.String[] arguments, V8ValueObject[] contextExtensions) throws JavetException
arguments
- the argumentscontextExtensions
- the context extensionsJavetException
- the javet exceptionbyte[] getCachedData()
default java.lang.String getResourceName()
java.lang.String getScriptString() throws JavetException
JavetException
- the javet exceptionV8Runtime getV8Runtime()
V8ScriptOrigin getV8ScriptOrigin()
default boolean isModule()
default IV8Executor setModule(boolean module)
module
- the moduledefault IV8Executor setResourceName(java.lang.String resourceName) throws JavetException
resourceName
- the resource nameJavetException
- the javet exceptiondefault <T,V extends V8Value> T toObject(V v8Value) throws JavetException
IV8Convertible
toObject
in interface IV8Convertible
T
- the type parameterV
- the type parameterv8Value
- the V8 valueJavetException
- the javet exception@CheckReturnValue default <T,V extends V8Value> V toV8Value(T object) throws JavetException
IV8Convertible
toV8Value
in interface IV8Convertible
T
- the type parameterV
- the type parameterobject
- the objectJavetException
- the javet exception