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 TypeMethodDescriptionboolean
void
toString()
static org.graalvm.polyglot.Value
Wraps an object as a TruffleValue
suitable for guest access, wrapping introspectable types withIntrospectableToTruffleAdapter
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.graalvm.polyglot.proxy.ProxyObject
removeMember
-
Method Details
-
wrap
Wraps an object as a TruffleValue
suitable 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:
getMember
in interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
getMemberKeys
- Specified by:
getMemberKeys
in interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
hasMember
- Specified by:
hasMember
in interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
putMember
- Specified by:
putMember
in interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
toString
-