Метод | Описание | |
---|---|---|
GetJavaIterator ( |
If "obj" is a java.util.Iterator or a java.lang.Iterable, return a wrapping as a JavaScript Iterator. If "obj" is a java.util.Iterator or a java.lang.Iterable, return a wrapping as a JavaScript Iterator. Otherwise, return null. This method is in VMBridge since Iterable is a JDK 1.5 addition. |
Метод | Описание | |
---|---|---|
GetContext ( object contextHelper ) : |
Get
|
|
GetCurrentThreadClassLoader ( ) : ClassLoader |
Return the ClassLoader instance associated with the current thread. Return the ClassLoader instance associated with the current thread. |
|
GetInterfaceProxyHelper ( ContextFactory cf, |
Create helper object to create later proxies implementing the specified interfaces later. Create helper object to create later proxies implementing the specified interfaces later. Under JDK 1.3 the implementation can look like: return java.lang.reflect.Proxy.getProxyClass(..., interfaces). getConstructor(new Class[] { java.lang.reflect.InvocationHandler.class }); |
|
GetThreadContextHelper ( ) : object |
Return a helper object to optimize The runtime will pass the resulting helper object to the subsequent calls to
|
|
IsVarArgs ( |
Returns whether or not a given member (method or constructor) has variable arguments. Returns whether or not a given member (method or constructor) has variable arguments. Variable argument methods have only been supported in Java since JDK 1.5. |
|
NewInterfaceProxy ( object proxyHelper, ContextFactory cf, |
Create proxy object for
|
|
SetContext ( object contextHelper, |
Associate
|
|
TryToMakeAccessible ( object accessibleObject ) : bool |
In many JVMSs, public methods in private classes are not accessible by default (Sun Bug #4071593). In many JVMSs, public methods in private classes are not accessible by default (Sun Bug #4071593). VMBridge instance should try to workaround that via, for example, calling method.setAccessible(true) when it is available. The implementation is responsible to catch all possible exceptions like SecurityException if the workaround is not available. |
Метод | Описание | |
---|---|---|
MakeInstance ( ) : |
protected abstract GetContext ( object contextHelper ) : |
||
contextHelper | object |
/// The result of
/// |
Результат |
protected abstract GetCurrentThreadClassLoader ( ) : ClassLoader | ||
Результат | ClassLoader |
protected GetInterfaceProxyHelper ( ContextFactory cf, |
||
cf | ContextFactory | |
interfaces | Array with one or more interface class objects. | |
Результат | object |
public GetJavaIterator ( |
||
cx | ||
scope | Scriptable | |
obj | object | |
Результат | IEnumerator |
protected abstract GetThreadContextHelper ( ) : object | ||
Результат | object |
protected abstract IsVarArgs ( |
||
member | ||
Результат | bool |
protected NewInterfaceProxy ( object proxyHelper, ContextFactory cf, |
||
proxyHelper | object |
/// The result of the previous call to
/// |
cf | ContextFactory | |
adapter | ||
target | object | |
topScope | Scriptable | |
Результат | object |
protected abstract SetContext ( object contextHelper, |
||
contextHelper | object |
/// The result of
/// |
cx | ||
Результат | void |
protected abstract TryToMakeAccessible ( object accessibleObject ) : bool | ||
accessibleObject | object | |
Результат | bool |