Package org.graalvm.polyglot.proxy
Interface ProxyInstantiable
- All Superinterfaces:
Proxy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to be implemented to mimic guest language objects that are instantiable.
- Since:
- 19.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionnewInstance
(Value... arguments) Creates a new instance of the object with the given arguments.
-
Method Details
-
newInstance
Creates a new instance of the object with the given arguments.- Throws:
UnsupportedOperationException
- if the proxy cannot be instantiated with the given arguments.- Since:
- 19.0
-