Search in sources :

Example 6 with AbstractPolyglotImpl

use of org.graalvm.polyglot.impl.AbstractPolyglotImpl in project graal by oracle.

the class RemoteSLTest method getPolyglotImpl.

private static AbstractPolyglotImpl getPolyglotImpl() throws Throwable {
    Class<?> implHolder = Class.forName(Engine.class.getName() + "$ImplHolder");
    Field f = implHolder.getDeclaredField("IMPL");
    ReflectionUtils.setAccessible(f, true);
    return (AbstractPolyglotImpl) f.get(null);
}
Also used : AbstractPolyglotImpl(org.graalvm.polyglot.impl.AbstractPolyglotImpl) Field(java.lang.reflect.Field)

Aggregations

AbstractPolyglotImpl (org.graalvm.polyglot.impl.AbstractPolyglotImpl)6 Method (java.lang.reflect.Method)4 IOException (java.io.IOException)2 TruffleObject (com.oracle.truffle.api.interop.TruffleObject)1 Field (java.lang.reflect.Field)1 AtomicMoveNotSupportedException (java.nio.file.AtomicMoveNotSupportedException)1 FileAlreadyExistsException (java.nio.file.FileAlreadyExistsException)1 NoSuchFileException (java.nio.file.NoSuchFileException)1 Engine (org.graalvm.polyglot.Engine)1 PolyglotException (org.graalvm.polyglot.PolyglotException)1 Source (org.graalvm.polyglot.Source)1 SourceSection (org.graalvm.polyglot.SourceSection)1 AbstractSourceDispatch (org.graalvm.polyglot.impl.AbstractPolyglotImpl.AbstractSourceDispatch)1 AbstractSourceSectionDispatch (org.graalvm.polyglot.impl.AbstractPolyglotImpl.AbstractSourceSectionDispatch)1 Test (org.junit.Test)1