|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.VMBridge
org.mozilla.javascript.jdk11.VMBridge_jdk11
public class VMBridge_jdk11
Constructor Summary | |
---|---|
VMBridge_jdk11()
|
Method Summary | |
---|---|
protected Context |
getContext(java.lang.Object contextHelper)
Get Context instance associated with the current thread
or null if none. |
protected java.lang.ClassLoader |
getCurrentThreadClassLoader()
Return the ClassLoader instance associated with the current thread. |
protected java.lang.Object |
getThreadContextHelper()
Return a helper object to optimize Context access. |
protected boolean |
isVarArgs(java.lang.reflect.Member member)
Returns whether or not a given member (method or constructor) has variable arguments. |
protected void |
setContext(java.lang.Object contextHelper,
Context cx)
Associate Context instance with the current thread or remove
the current association if cx is null. |
protected boolean |
tryToMakeAccessible(java.lang.Object accessibleObject)
In many JVMSs, public methods in private classes are not accessible by default (Sun Bug #4071593). |
Methods inherited from class org.mozilla.javascript.VMBridge |
---|
getInterfaceProxyHelper, getJavaIterator, newInterfaceProxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VMBridge_jdk11()
Method Detail |
---|
protected java.lang.Object getThreadContextHelper()
VMBridge
Context
access.
The runtime will pass the resulting helper object to the subsequent
calls to VMBridge.getContext(Object contextHelper)
and
VMBridge.setContext(Object contextHelper, Context cx)
methods.
In this way the implementation can use the helper to cache
information about current thread to make Context
access faster.
getThreadContextHelper
in class VMBridge
protected Context getContext(java.lang.Object contextHelper)
VMBridge
Context
instance associated with the current thread
or null if none.
getContext
in class VMBridge
contextHelper
- The result of VMBridge.getThreadContextHelper()
called from the current thread.protected void setContext(java.lang.Object contextHelper, Context cx)
VMBridge
Context
instance with the current thread or remove
the current association if cx is null.
setContext
in class VMBridge
contextHelper
- The result of VMBridge.getThreadContextHelper()
called from the current thread.protected java.lang.ClassLoader getCurrentThreadClassLoader()
VMBridge
getCurrentThreadClassLoader
in class VMBridge
protected boolean tryToMakeAccessible(java.lang.Object accessibleObject)
VMBridge
tryToMakeAccessible
in class VMBridge
protected boolean isVarArgs(java.lang.reflect.Member member)
VMBridge
isVarArgs
in class VMBridge
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |