Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/eclipsesource/J2V8
/ functions
Functions
2,731 in github.com/eclipsesource/J2V8
⨍
Functions
2,731
◇
Types & classes
158
↳
Endpoints
12
↓ 1,259 callers
Method
close
Release the underlying resources. Once an object is released it typically cannot be used again.
src/main/java/com/eclipsesource/v8/Releasable.java:24
↓ 321 callers
Method
get
(final long v8RuntimePtr, final int expectedType, final long objectHandle, final String key)
src/main/java/com/eclipsesource/v8/V8.java:1190
↓ 308 callers
Method
executeVoidScript
Executes a JS Script on this runtime. @param script The script to execute.
src/main/java/com/eclipsesource/v8/V8.java:788
↓ 258 callers
Method
push
Pushes an integer value to the next available spot in the Array. In particular, this[length] = value; @param value The value to push to the array. @
src/main/java/com/eclipsesource/v8/V8Array.java:467
↓ 235 callers
Method
add
(final long v8RuntimePtr, final long objectHandle, final String key, final int value)
src/main/java/com/eclipsesource/v8/V8.java:1242
↓ 214 callers
Method
executeArrayScript
Executes a JS Script on this runtime and returns the result as a V8Array. If the result is not a V8Array, then a V8ResultUndefinedException is thrown.
src/main/java/com/eclipsesource/v8/V8.java:660
↓ 203 callers
Method
executeScript
Executes a JS Script on this runtime and returns the result as a Java Object. Primitives will be boxed. @param script The script to execute. @return
src/main/java/com/eclipsesource/v8/V8.java:693
↓ 152 callers
Method
registerJavaMethod
(final long v8RuntimePtr, final long objectHandle, final String functionName, final boolean voidMethod)
src/main/java/com/eclipsesource/v8/V8.java:1270
↓ 149 callers
Method
checkThread
Checks if the locker has access to the current thread. If the locker holds a different thread, than an Error is thrown.
src/main/java/com/eclipsesource/v8/V8Locker.java:94
↓ 130 callers
Method
checkReleased
()
src/main/java/com/eclipsesource/v8/V8Value.java:385
↓ 128 callers
Method
length
Returns the length of this array. @return The length of the array.
src/main/java/com/eclipsesource/v8/V8Array.java:78
↓ 117 callers
Method
executeObjectScript
Executes a JS Script on this runtime and returns the result as a V8Object. If the result is not a V8Object, then a V8ResultUndefinedException is throw
src/main/java/com/eclipsesource/v8/V8.java:758
↓ 110 callers
Method
getObject
Returns the V8Object value associated at this index. If the value at this index does not exist, or if it's not a V8Object, then V8ResultUndefined exce
src/main/java/com/eclipsesource/v8/V8Array.java:449
↓ 100 callers
Method
getV8RuntimePtr
()
src/main/java/com/eclipsesource/v8/V8.java:326
↓ 97 callers
Method
getValue
Create a Java Object from a result from V8. V8 can return basic Java types, or V8Values (V8Object, V8Array, etc...). This method will attempt to conve
src/main/java/com/eclipsesource/v8/utils/V8ObjectUtils.java:53
↓ 97 callers
Method
put
(final V8Value key, final V value)
src/main/java/com/eclipsesource/v8/utils/V8Map.java:112
↓ 89 callers
Method
size
()
src/main/java/com/eclipsesource/v8/utils/V8Map.java:67
↓ 88 callers
Method
createV8Runtime
Creates a new V8Runtime and loads the required native libraries if they are not already loaded. The current thread is given the lock to this runtime.
src/main/java/com/eclipsesource/v8/V8.java:115
↓ 82 callers
Method
add
Adds a key value pair to the receiver where the value is an integer. @param key The key to associate the value with. @param value The value to add.
src/main/java/com/eclipsesource/v8/V8Object.java:446
↓ 82 callers
Method
getArray
Returns the V8Array value associated at this index. If the value at this index does not exist, or if it's not a V8Array, then V8ResultUndefined except
src/main/java/com/eclipsesource/v8/V8Array.java:429
↓ 79 callers
Method
executeIntegerScript
Executes a JS Script on this runtime and returns the result as an integer. If the result is not an integer, then a V8ResultUndefinedException is throw
src/main/java/com/eclipsesource/v8/V8.java:531
↓ 74 callers
Method
getHandle
()
src/main/java/com/eclipsesource/v8/V8Value.java:331
↓ 66 callers
Method
get
(final int index)
src/main/java/com/eclipsesource/v8/V8TypedArray.java:45
↓ 66 callers
Method
getType
Returns the type of element at this given index. @param index The index at which to lookup the type of. @return The type of the element at the index
src/main/java/com/eclipsesource/v8/V8Array.java:91
↓ 57 callers
Method
join
(final byte[] arr1, final byte[] arr2, final int startPos, final int length)
src/main/java/com/eclipsesource/v8/debug/V8DebugServer.java:685
↓ 54 callers
Method
getMessage
()
src/main/java/com/eclipsesource/v8/V8ScriptException.java:118
↓ 52 callers
Method
equals
(final long v8RuntimePtr, final long objectHandle, final long that)
src/main/java/com/eclipsesource/v8/V8.java:1222
↓ 48 callers
Method
executeBooleanScript
Executes a JS Script on this runtime and returns the result as a boolean. If the result is not a boolean, then a V8ResultUndefinedException is thrown.
src/main/java/com/eclipsesource/v8/V8.java:629
↓ 44 callers
Method
getString
Returns the String value associated with this key. If the value associated with this key does not exist, or if it's not a String, then V8ResultUndefin
src/main/java/com/eclipsesource/v8/V8Object.java:185
↓ 43 callers
Method
getV8TypedArray
Returns the underlying V8TypedArray. @return the underlying V8TypedArray.
src/main/java/com/eclipsesource/v8/utils/TypedArray.java:69
↓ 43 callers
Method
put
(final String key, final V value)
src/main/java/com/eclipsesource/v8/utils/V8PropertyMap.java:90
↓ 41 callers
Method
getFrame
Returns the Frame at a given index @param index The stack index @return The stack frame at a given index
src/main/java/com/eclipsesource/v8/debug/ExecutionState.java:71
↓ 39 callers
Method
getInteger
Returns the integer value associated at this index. If the value at this index does not exist, or if it's not an integer, then V8ResultUndefined excep
src/main/java/com/eclipsesource/v8/V8Array.java:137
↓ 39 callers
Method
release
()
src/main/java/com/eclipsesource/v8/V8.java:372
↓ 38 callers
Method
release
Synonym for {@link #close()}.
src/main/java/com/eclipsesource/v8/Releasable.java:29
↓ 36 callers
Method
executeStringScript
Executes a JS Script on this runtime and returns the result as a String. If the result is not a String, then a V8ResultUndefinedException is thrown.
src/main/java/com/eclipsesource/v8/V8.java:598
↓ 36 callers
Method
getString
Returns the String value associated at this index. If the value at this index does not exist, or if it's not a String, then V8ResultUndefined exceptio
src/main/java/com/eclipsesource/v8/V8Array.java:200
↓ 35 callers
Method
get
Gets the value at a given index as a Java Object. Primitives are boxed. @param index The index to get the value at. @return The value at the given i
src/main/java/com/eclipsesource/v8/V8Array.java:413
↓ 35 callers
Method
isUndefined
Determines if this value is undefined. @return Returns true if the value is undefined, false otherwise
src/main/java/com/eclipsesource/v8/V8Value.java:162
↓ 34 callers
Method
close
()
src/main/java/com/eclipsesource/v8/utils/V8Map.java:47
↓ 34 callers
Method
executeDoubleScript
Executes a JS Script on this runtime and returns the result as a double. If the result is not a double, then a V8ResultUndefinedException is thrown.
src/main/java/com/eclipsesource/v8/V8.java:567
↓ 34 callers
Method
start
Starts accepting client connections and blocks until a client connects if {@code waitForConnection} has been passed to V8DebugServer constructor.
src/main/java/com/eclipsesource/v8/debug/V8DebugServer.java:188
↓ 33 callers
Method
executeIntegerFunction
(final long v8RuntimePtr, final long objectHandle, final String name, final long parametersHandle)
src/main/java/com/eclipsesource/v8/V8.java:1194
↓ 33 callers
Method
getUndefined
Returns an UNDEFINED constant. @return The UNDEFINED constant value.
src/main/java/com/eclipsesource/v8/V8.java:304
↓ 32 callers
Method
contains
(final long v8RuntimePtr, final long objectHandle, final String key)
src/main/java/com/eclipsesource/v8/V8.java:1166
↓ 31 callers
Method
executeObjectFunction
Invoke a JavaScript function and return the result as a V8Object. If the result is not a V8Object then V8ResultUndefined is thrown. @param name The n
src/main/java/com/eclipsesource/v8/V8Object.java:344
↓ 30 callers
Method
executeVoidFunction
(final long v8RuntimePtr, final long objectHandle, final String name, final long parametersHandle)
src/main/java/com/eclipsesource/v8/V8.java:1218
↓ 30 callers
Method
hashCode
()
src/main/java/com/eclipsesource/v8/V8Value.java:378
↓ 29 callers
Method
get
(final Object key)
src/main/java/com/eclipsesource/v8/utils/V8PropertyMap.java:78
↓ 28 callers
Method
getLocker
Returns the locker associated with this runtime. The locker allows threads to give up control of the runtime and other threads to acquire control. @r
src/main/java/com/eclipsesource/v8/V8.java:813
↓ 28 callers
Method
setScriptBreakpoint
Registers a breakpoint given a scriptID and line number. The breakpoint will be 'hit' when the script is executed and the given line is reached. @par
src/main/java/com/eclipsesource/v8/debug/DebugHandler.java:120
↓ 27 callers
Method
getInteger
(final long v8RuntimePtr, final long objectHandle, final String key)
src/main/java/com/eclipsesource/v8/V8.java:1174
↓ 27 callers
Method
getType
(final long v8RuntimePtr, final long objectHandle)
src/main/java/com/eclipsesource/v8/V8.java:1392
↓ 26 callers
Method
call
Invoke the JavaScript function on the current runtime. @param receiver The object on which to call the function on. The receiver will be mapped to 't
src/main/java/com/eclipsesource/v8/V8Function.java:86
↓ 26 callers
Method
getActiveRuntimes
Returns the number of active runtimes. @return The number of active runtimes.
src/main/java/com/eclipsesource/v8/V8.java:313
↓ 26 callers
Method
getName
()
src/main/java/com/eclipsesource/v8/PlatformDetector.java:51
↓ 26 callers
Method
onBreak
(DebugEvent type, ExecutionState state, EventData eventData, V8Object data)
src/main/java/com/eclipsesource/v8/debug/BreakHandler.java:18
↓ 26 callers
Method
release
Releases this Memory Manager and all V8Objects that were created while this memory manager was active.
src/main/java/com/eclipsesource/v8/utils/MemoryManager.java:93
↓ 25 callers
Method
close
()
src/main/java/com/eclipsesource/v8/debug/DebugHandler.java:263
↓ 25 callers
Method
get
Returns the value associated with this key. Values are Java Objects. If the value is a primitive, its boxed type is returned. If the value is a V8Valu
src/main/java/com/eclipsesource/v8/V8Object.java:117
↓ 25 callers
Method
getInteger
Returns the integer value associated with this key. If the value associated with this key does not exist, or if it's not an integer, then V8ResultUnde
src/main/java/com/eclipsesource/v8/V8Object.java:134
↓ 25 callers
Method
getLocalValue
Returns the value of the local variable at the given index. @param index The index of the local to return. @return The value of local at the given in
src/main/java/com/eclipsesource/v8/debug/mirror/Frame.java:139
↓ 25 callers
Method
twin
Creates a new Java object pointing at the same V8 Value as this. If the value is mutated (by adding new members or changing existing ones) then both t
src/main/java/com/eclipsesource/v8/V8Value.java:204
↓ 24 callers
Method
build_step
(self, target, build_fn)
build_system/build_structures.py:21
↓ 24 callers
Method
executeBooleanFunction
(final long v8RuntimePtr, final long handle, final String name, final long parametersHandle)
src/main/java/com/eclipsesource/v8/V8.java:1206
↓ 24 callers
Method
registerAndRelease
(final String name, final List<? extends Object> list)
src/test/java/com/eclipsesource/v8/utils/V8ObjectUtilsTest.java:2899
↓ 24 callers
Method
toMap
Creates a Map from a V8Object using a deep copy. All elements in the V8Object are released after they are accessed. However, the root object itself is
src/main/java/com/eclipsesource/v8/utils/V8ObjectUtils.java:96
↓ 23 callers
Method
executeStringFunction
(final long v8RuntimePtr, final long handle, final String name, final long parametersHandle)
src/main/java/com/eclipsesource/v8/V8.java:1202
↓ 23 callers
Method
getDouble
Returns the double value associated at this index. If the value at this index does not exist, or if it's not a double, then V8ResultUndefined exceptio
src/main/java/com/eclipsesource/v8/V8Array.java:184
↓ 23 callers
Method
getStringRepresentation
Returns a string representation of the V8 Type. @param type Type to return as a string. See constants in V8Value. @return The V8Value type as a string
src/main/java/com/eclipsesource/v8/V8Value.java:103
↓ 22 callers
Method
checkThread
()
src/main/java/com/eclipsesource/v8/V8.java:848
↓ 22 callers
Method
close
()
src/main/java/com/eclipsesource/v8/V8Value.java:270
↓ 22 callers
Method
getProperty
Returns the PropertyMiror at a given index. @param index The index of the property @return The property at the given index
src/main/java/com/eclipsesource/v8/debug/mirror/PropertiesArray.java:34
↓ 21 callers
Method
executeArrayFunction
Invoke a JavaScript function and return the result as a V8Array. If the result is not a V8Array then V8ResultUndefined is thrown. @param name The nam
src/main/java/com/eclipsesource/v8/V8Object.java:321
↓ 21 callers
Method
getRuntime
Returns the V8 runtime being used for this NodeJS instance. @return The V8 Runtime.
src/main/java/com/eclipsesource/v8/NodeJS.java:119
↓ 21 callers
Method
isReleased
Determine if the native resources have been released. Once released a V8 Value can no longer be used. @return Returns true if this object has been re
src/main/java/com/eclipsesource/v8/V8Value.java:300
↓ 20 callers
Method
getBoolean
Returns the boolean value associated at this index. If the value at this index does not exist, or if it's not a boolean, then V8ResultUndefined except
src/main/java/com/eclipsesource/v8/V8Array.java:153
↓ 20 callers
Method
getObject
Returns the V8Object value associated with this key. If the value associated with this key does not exist then UNDEFINED is returned. If the value exi
src/main/java/com/eclipsesource/v8/V8Object.java:223
↓ 20 callers
Method
toList
Creates a List from a V8Array using a deep copy. All elements in the V8Array are released after they are accessed. However, the root array itself is n
src/main/java/com/eclipsesource/v8/utils/V8ObjectUtils.java:128
↓ 19 callers
Method
addBreakHandler
Adds a handler to be notified when a breakpoint is hit. @param handler The handler to notify.
src/main/java/com/eclipsesource/v8/debug/DebugHandler.java:79
↓ 19 callers
Method
handleBreak
(final BreakHandler handler)
src/test/java/com/eclipsesource/v8/debug/MirrorTest.java:502
↓ 19 callers
Method
inject_env
Grab values for often used properties from the config object and perform variable substitution on the given cmd string.
build_system/build_structures.py:123
↓ 18 callers
Method
getTypedArray
Populates a Java array from a V8Array. The type of the array must be specified. Currently, only INTEGER, DOUBLE, BOOLEAN and STRING are supported. The
src/main/java/com/eclipsesource/v8/utils/V8ObjectUtils.java:166
↓ 17 callers
Method
addReferenceHandler
Adds a ReferenceHandler to track when new V8Objects are created. @param handler The ReferenceHandler to add
src/main/java/com/eclipsesource/v8/V8.java:176
↓ 17 callers
Method
executeFunction
(final long v8RuntimePtr, final int expectedType, final long objectHandle, final String name, final long param
src/main/java/com/eclipsesource/v8/V8.java:1210
↓ 17 callers
Method
executeJSFunction
Invoke a JavaScript function and return the result as a Java Object. @param name The name of the JS Function to call @return The result of this JS Fu
src/main/java/com/eclipsesource/v8/V8Object.java:379
↓ 17 callers
Method
get
(final Object key)
src/main/java/com/eclipsesource/v8/utils/V8Map.java:103
↓ 17 callers
Method
getIntegers
Returns the integers contained in a subset of a V8Array. If the subset contains elements other than integers, then a V8ResultUndefined exception is th
src/main/java/com/eclipsesource/v8/V8Array.java:218
↓ 17 callers
Method
getObjectReferenceCount
Returns the number of Object References for this runtime. @return The number of Object References on this runtime.
src/main/java/com/eclipsesource/v8/V8.java:322
↓ 17 callers
Method
remove
(final Object key)
src/main/java/com/eclipsesource/v8/utils/V8Map.java:124
↓ 16 callers
Method
forceTermination
Forces the executor to shutdown immediately. Any currently executing JavaScript will be interrupted and all outstanding messages will be ignored.
src/main/java/com/eclipsesource/v8/utils/V8Executor.java:201
↓ 16 callers
Method
getType
Returns the type of the value associated with this Key, or UNDEFINED if the key does not exist. Types are specified as integer constants. The types ar
src/main/java/com/eclipsesource/v8/V8Object.java:101
↓ 16 callers
Method
isReleased
Checks if the memory manager has been released or not. Released memory managers can no longer be used. @return True if this memory manager has been r
src/main/java/com/eclipsesource/v8/utils/MemoryManager.java:85
↓ 16 callers
Method
v8HandleCreated
Called when a native handle is first created. The V8Value referenced by that handle is passed as a parameter. @param object The V8Value referenced by
src/main/java/com/eclipsesource/v8/ReferenceHandler.java:24
↓ 15 callers
Method
get
()
src/main/java/com/eclipsesource/v8/V8ArrayBuffer.java:187
↓ 14 callers
Method
getString
(final long v8RuntimePtr, final long objectHandle, final String key)
src/main/java/com/eclipsesource/v8/V8.java:1186
↓ 14 callers
Method
getStrings
Returns the Strings contained in a subset of a V8Array. If the subset contains elements other than Strings, then a V8ResultUndefined exception is thro
src/main/java/com/eclipsesource/v8/V8Array.java:378
↓ 13 callers
Method
checkRuntime
(final V8Value value)
src/main/java/com/eclipsesource/v8/V8.java:836
↓ 13 callers
Method
close
()
src/main/java/com/eclipsesource/v8/V8.java:363
↓ 13 callers
Function
createV8String
jni/com_eclipsesource_v8_V8Impl.cpp:337
next →
1–100 of 2,731, ranked by callers