T
- the type parameter for internal iterableE
- the type parameter for external exceptionpublic class V8VirtualIterator<T,E extends java.lang.Exception> extends java.lang.Object implements IJavetDirectProxyHandler<E>
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
FUNCTION_NEXT
The constant FUNCTION_NEXT.
|
protected java.util.Iterator<T> |
iterator
The Iterable.
|
protected static java.lang.String |
PROPERTY_DONE
The constant PROPERTY_DONE.
|
protected static java.lang.String |
PROPERTY_VALUE
The constant PROPERTY_VALUE.
|
protected V8Runtime |
v8Runtime
The V8 runtime.
|
protected T |
value
The Value.
|
Constructor and Description |
---|
V8VirtualIterator(java.util.Iterator<T> iterator)
Instantiates a new V8 virtual iterator.
|
Modifier and Type | Method and Description |
---|---|
V8Runtime |
getV8Runtime()
Gets V8 runtime.
|
protected V8Value |
next(V8Value thisObject,
V8Value... v8Values)
Next.
|
V8Value |
proxyGet(V8Value target,
V8Value property,
V8Value receiver)
Proxy handler.get().
|
V8ValueArray |
proxyOwnKeys(V8Value target)
Proxy handler.ownKeys().
|
void |
setV8Runtime(V8Runtime v8Runtime)
Sets V8 runtime.
|
V8Value |
symbolToPrimitive(V8Value... v8Values)
Symbol toPrimitive.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTargetObject, getProxyPlugin, proxyApply, proxyDeleteProperty, proxyGetOwnPropertyDescriptor, proxyGetPrototypeOf, proxyGetStringGetterMap, proxyGetStringSetterMap, proxyGetSymbolGetterMap, proxyGetSymbolSetterMap, proxyHas, proxySet, registerStringGetter, registerStringGetterFunction, registerStringSetter, registerSymbolGetterFunction, symbolIterator, toJSON
protected static final java.lang.String FUNCTION_NEXT
protected static final java.lang.String PROPERTY_DONE
protected static final java.lang.String PROPERTY_VALUE
protected java.util.Iterator<T> iterator
protected V8Runtime v8Runtime
protected T value
public V8VirtualIterator(java.util.Iterator<T> iterator)
iterator
- the iterablepublic V8Runtime getV8Runtime()
IJavetDirectProxyHandler
getV8Runtime
in interface IJavetDirectProxyHandler<E extends java.lang.Exception>
protected V8Value next(V8Value thisObject, V8Value... v8Values)
thisObject
- the this objectv8Values
- the V8 valuespublic V8Value proxyGet(V8Value target, V8Value property, V8Value receiver) throws JavetException, E extends java.lang.Exception
IJavetDirectProxyHandler
proxyGet
in interface IJavetDirectProxyHandler<E extends java.lang.Exception>
target
- the targetproperty
- the propertyreceiver
- the receiverJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
public V8ValueArray proxyOwnKeys(V8Value target) throws JavetException, E extends java.lang.Exception
IJavetDirectProxyHandler
proxyOwnKeys
in interface IJavetDirectProxyHandler<E extends java.lang.Exception>
target
- the targetJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
public void setV8Runtime(V8Runtime v8Runtime)
IJavetDirectProxyHandler
setV8Runtime
in interface IJavetDirectProxyHandler<E extends java.lang.Exception>
v8Runtime
- the V8 runtimepublic V8Value symbolToPrimitive(V8Value... v8Values) throws JavetException, E extends java.lang.Exception
IJavetDirectProxyHandler
symbolToPrimitive
in interface IJavetDirectProxyHandler<E extends java.lang.Exception>
v8Values
- the V8 valuesJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception