Package io.micronaut.views.react.truffle
Class IntrospectableToTruffleAdapter
java.lang.Object
io.micronaut.views.react.truffle.IntrospectableToTruffleAdapter
- All Implemented Interfaces:
org.graalvm.polyglot.proxy.Proxy,org.graalvm.polyglot.proxy.ProxyObject
@Internal
public final class IntrospectableToTruffleAdapter
extends Object
implements org.graalvm.polyglot.proxy.ProxyObject
A proxy object similar to that returned by
ProxyObject.fromMap(Map), but with support
for Micronaut's bean introspection system (a form of compile-time reflection code generation).
Reading a key whose value is an introspectable bean will use the BeanMap instead of
the regular polyglot mapping.-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidtoString()static org.graalvm.polyglot.ValueWraps an object as a TruffleValuesuitable for guest access, wrapping introspectable types withIntrospectableToTruffleAdapter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.graalvm.polyglot.proxy.ProxyObject
removeMember
-
Method Details
-
wrap
Wraps an object as a TruffleValuesuitable for guest access, wrapping introspectable types withIntrospectableToTruffleAdapter.- Parameters:
context- The language context to wrap the object into.object- Either null, aMap, aCollection, anintrospectable object, or any other object supported by the Polyglot interop layer.- Returns:
- A value that will return true to
Value.isProxyObject()
-
getMember
- Specified by:
getMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
getMemberKeys
- Specified by:
getMemberKeysin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
hasMember
- Specified by:
hasMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
putMember
- Specified by:
putMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
toString
-