Getting delegate of an EngineTruffleObject

Stefan Marr java at stefan-marr.de
Wed Jun 7 07:47:03 UTC 2017


Hi Vlad:

> On 7 Jun 2017, at 08:33, Vlad Vergu <v.vergu at gmail.com> wrote:
> 
> The issue i’m having is that calls to PolyglotEngine.eval(…) return an EngineTruffleObject instances since 0.23. The EngineTruffleObject class is package private. How do i get the delegate object?

I am using something like this:

Value result = engine.eval(…);
Obj o = result.as(Object.class);

or 

SObject o = result.as(SObject.class);

> meta-issue: is this the right list for these questions?

Yes, beside this list, I think there’s only the gitter channel: https://gitter.im/graalvm/graal-core

Best regards
Stefan


-- 
Stefan Marr
Johannes Kepler Universität Linz
http://stefan-marr.de/research/





More information about the graal-dev mailing list