MCPcopy Create free account

hub / github.com/eclipsesource/J2V8 / functions

Functions2,731 in github.com/eclipsesource/J2V8

↓ 1,259 callersMethodclose
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 callersMethodget
(final long v8RuntimePtr, final int expectedType, final long objectHandle, final String key)
src/main/java/com/eclipsesource/v8/V8.java:1190
↓ 308 callersMethodexecuteVoidScript
Executes a JS Script on this runtime. @param script The script to execute.
src/main/java/com/eclipsesource/v8/V8.java:788
↓ 258 callersMethodpush
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 callersMethodadd
(final long v8RuntimePtr, final long objectHandle, final String key, final int value)
src/main/java/com/eclipsesource/v8/V8.java:1242
↓ 214 callersMethodexecuteArrayScript
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 callersMethodexecuteScript
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 callersMethodregisterJavaMethod
(final long v8RuntimePtr, final long objectHandle, final String functionName, final boolean voidMethod)
src/main/java/com/eclipsesource/v8/V8.java:1270
↓ 149 callersMethodcheckThread
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 callersMethodcheckReleased
()
src/main/java/com/eclipsesource/v8/V8Value.java:385
↓ 128 callersMethodlength
Returns the length of this array. @return The length of the array.
src/main/java/com/eclipsesource/v8/V8Array.java:78
↓ 117 callersMethodexecuteObjectScript
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 callersMethodgetObject
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 callersMethodgetV8RuntimePtr
()
src/main/java/com/eclipsesource/v8/V8.java:326
↓ 97 callersMethodgetValue
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 callersMethodput
(final V8Value key, final V value)
src/main/java/com/eclipsesource/v8/utils/V8Map.java:112
↓ 89 callersMethodsize
()
src/main/java/com/eclipsesource/v8/utils/V8Map.java:67
↓ 88 callersMethodcreateV8Runtime
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 callersMethodadd
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 callersMethodgetArray
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 callersMethodexecuteIntegerScript
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 callersMethodgetHandle
()
src/main/java/com/eclipsesource/v8/V8Value.java:331
↓ 66 callersMethodget
(final int index)
src/main/java/com/eclipsesource/v8/V8TypedArray.java:45
↓ 66 callersMethodgetType
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 callersMethodjoin
(final byte[] arr1, final byte[] arr2, final int startPos, final int length)
src/main/java/com/eclipsesource/v8/debug/V8DebugServer.java:685
↓ 54 callersMethodgetMessage
()
src/main/java/com/eclipsesource/v8/V8ScriptException.java:118
↓ 52 callersMethodequals
(final long v8RuntimePtr, final long objectHandle, final long that)
src/main/java/com/eclipsesource/v8/V8.java:1222
↓ 48 callersMethodexecuteBooleanScript
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 callersMethodgetString
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 callersMethodgetV8TypedArray
Returns the underlying V8TypedArray. @return the underlying V8TypedArray.
src/main/java/com/eclipsesource/v8/utils/TypedArray.java:69
↓ 43 callersMethodput
(final String key, final V value)
src/main/java/com/eclipsesource/v8/utils/V8PropertyMap.java:90
↓ 41 callersMethodgetFrame
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 callersMethodgetInteger
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 callersMethodrelease
()
src/main/java/com/eclipsesource/v8/V8.java:372
↓ 38 callersMethodrelease
Synonym for {@link #close()}.
src/main/java/com/eclipsesource/v8/Releasable.java:29
↓ 36 callersMethodexecuteStringScript
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 callersMethodgetString
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 callersMethodget
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 callersMethodisUndefined
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 callersMethodclose
()
src/main/java/com/eclipsesource/v8/utils/V8Map.java:47
↓ 34 callersMethodexecuteDoubleScript
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 callersMethodstart
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 callersMethodexecuteIntegerFunction
(final long v8RuntimePtr, final long objectHandle, final String name, final long parametersHandle)
src/main/java/com/eclipsesource/v8/V8.java:1194
↓ 33 callersMethodgetUndefined
Returns an UNDEFINED constant. @return The UNDEFINED constant value.
src/main/java/com/eclipsesource/v8/V8.java:304
↓ 32 callersMethodcontains
(final long v8RuntimePtr, final long objectHandle, final String key)
src/main/java/com/eclipsesource/v8/V8.java:1166
↓ 31 callersMethodexecuteObjectFunction
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 callersMethodexecuteVoidFunction
(final long v8RuntimePtr, final long objectHandle, final String name, final long parametersHandle)
src/main/java/com/eclipsesource/v8/V8.java:1218
↓ 30 callersMethodhashCode
()
src/main/java/com/eclipsesource/v8/V8Value.java:378
↓ 29 callersMethodget
(final Object key)
src/main/java/com/eclipsesource/v8/utils/V8PropertyMap.java:78
↓ 28 callersMethodgetLocker
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 callersMethodsetScriptBreakpoint
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 callersMethodgetInteger
(final long v8RuntimePtr, final long objectHandle, final String key)
src/main/java/com/eclipsesource/v8/V8.java:1174
↓ 27 callersMethodgetType
(final long v8RuntimePtr, final long objectHandle)
src/main/java/com/eclipsesource/v8/V8.java:1392
↓ 26 callersMethodcall
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 callersMethodgetActiveRuntimes
Returns the number of active runtimes. @return The number of active runtimes.
src/main/java/com/eclipsesource/v8/V8.java:313
↓ 26 callersMethodgetName
()
src/main/java/com/eclipsesource/v8/PlatformDetector.java:51
↓ 26 callersMethodonBreak
(DebugEvent type, ExecutionState state, EventData eventData, V8Object data)
src/main/java/com/eclipsesource/v8/debug/BreakHandler.java:18
↓ 26 callersMethodrelease
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 callersMethodclose
()
src/main/java/com/eclipsesource/v8/debug/DebugHandler.java:263
↓ 25 callersMethodget
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 callersMethodgetInteger
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 callersMethodgetLocalValue
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 callersMethodtwin
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 callersMethodbuild_step
(self, target, build_fn)
build_system/build_structures.py:21
↓ 24 callersMethodexecuteBooleanFunction
(final long v8RuntimePtr, final long handle, final String name, final long parametersHandle)
src/main/java/com/eclipsesource/v8/V8.java:1206
↓ 24 callersMethodregisterAndRelease
(final String name, final List<? extends Object> list)
src/test/java/com/eclipsesource/v8/utils/V8ObjectUtilsTest.java:2899
↓ 24 callersMethodtoMap
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 callersMethodexecuteStringFunction
(final long v8RuntimePtr, final long handle, final String name, final long parametersHandle)
src/main/java/com/eclipsesource/v8/V8.java:1202
↓ 23 callersMethodgetDouble
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 callersMethodgetStringRepresentation
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 callersMethodcheckThread
()
src/main/java/com/eclipsesource/v8/V8.java:848
↓ 22 callersMethodclose
()
src/main/java/com/eclipsesource/v8/V8Value.java:270
↓ 22 callersMethodgetProperty
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 callersMethodexecuteArrayFunction
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 callersMethodgetRuntime
Returns the V8 runtime being used for this NodeJS instance. @return The V8 Runtime.
src/main/java/com/eclipsesource/v8/NodeJS.java:119
↓ 21 callersMethodisReleased
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 callersMethodgetBoolean
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 callersMethodgetObject
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 callersMethodtoList
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 callersMethodaddBreakHandler
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 callersMethodhandleBreak
(final BreakHandler handler)
src/test/java/com/eclipsesource/v8/debug/MirrorTest.java:502
↓ 19 callersMethodinject_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 callersMethodgetTypedArray
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 callersMethodaddReferenceHandler
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 callersMethodexecuteFunction
(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 callersMethodexecuteJSFunction
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 callersMethodget
(final Object key)
src/main/java/com/eclipsesource/v8/utils/V8Map.java:103
↓ 17 callersMethodgetIntegers
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 callersMethodgetObjectReferenceCount
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 callersMethodremove
(final Object key)
src/main/java/com/eclipsesource/v8/utils/V8Map.java:124
↓ 16 callersMethodforceTermination
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 callersMethodgetType
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 callersMethodisReleased
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 callersMethodv8HandleCreated
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 callersMethodget
()
src/main/java/com/eclipsesource/v8/V8ArrayBuffer.java:187
↓ 14 callersMethodgetString
(final long v8RuntimePtr, final long objectHandle, final String key)
src/main/java/com/eclipsesource/v8/V8.java:1186
↓ 14 callersMethodgetStrings
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 callersMethodcheckRuntime
(final V8Value value)
src/main/java/com/eclipsesource/v8/V8.java:836
↓ 13 callersMethodclose
()
src/main/java/com/eclipsesource/v8/V8.java:363
↓ 13 callersFunctioncreateV8String
jni/com_eclipsesource_v8_V8Impl.cpp:337
next →1–100 of 2,731, ranked by callers