public class V8Script extends V8ValueReference implements IV8Script
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
resourceName
The Resource name.
|
handle, INVALID_HANDLE, weak
OBJECT_CONVERTER, v8Runtime
Modifier and Type | Method and Description |
---|---|
<T extends V8Value> |
execute(boolean resultRequired)
Execute and return V8 value if required.
|
byte[] |
getCachedData()
Gets cached data.
|
java.lang.String |
getResourceName()
Gets resource name.
|
V8ValueReferenceType |
getType() |
V8Script |
toClone(boolean referenceCopy)
Get a clone of the current V8 value.
|
addReference, checkV8Runtime, clearWeak, close, close, equals, getHandle, isClosed, isWeak, isWeak, removeReference, sameValue, setWeak, strictEquals, toString
getV8Runtime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearWeak, close, getHandle, isClosed, isWeak, isWeak, setWeak
asBoolean, asDouble, asInt, asLong, asString, equals, getV8Runtime, isNull, isNullOrUndefined, isUndefined, sameValue, strictEquals
close
toClone
execute, executeBigInteger, executeBoolean, executeDouble, executeInteger, executeLong, executeObject, executeString, executeVoid, executeZonedDateTime
toObject
@CheckReturnValue public <T extends V8Value> T execute(boolean resultRequired) throws JavetException
IV8Executable
execute
in interface IV8Executable
T
- the type parameterresultRequired
- the result requiredJavetException
- the javet exceptionpublic byte[] getCachedData() throws JavetException
IV8Cacheable
getCachedData
in interface IV8Cacheable
JavetException
- the javet exceptionpublic java.lang.String getResourceName() throws JavetException
IV8Script
getResourceName
in interface IV8Script
JavetException
- the javet exceptionpublic V8ValueReferenceType getType()
getType
in interface IV8ValueReference
getType
in class V8ValueReference
public V8Script toClone(boolean referenceCopy) throws JavetException
IV8Cloneable
toClone
in interface IV8Cloneable
toClone
in class V8ValueReference
referenceCopy
- the reference copyJavetException
- the javet exception