public interface Proxy
Exceptions thrown by proxies are wrapped with a PolyglotException when the proxy is
invoked in a guest language. It is possible to unwrap the PolyglotException using
PolyglotException.asHostException().
The interfaces Proxy, ProxyArray, ProxyExecutable,
ProxyInstantiable, ProxyNativeObject, ProxyObject, ProxyIterable,
ProxyIterator can be used in combination with any other proxy interfaces.
The following proxy interface combinations are exclusive and throw an AssertionError if
used together:
AssertionError if
used:
ProxyTimeZone and ProxyDate without ProxyTime
ProxyTimeZone and ProxyTime without ProxyDate.
to mimic arrays,
to mimic objects with members,
to mimic objects that can be executed,
to mimic native objects,
to mimic date objects,
to mimic time objects,
to mimic timezone objects,
to mimic duration objects,
to mimic timestamp objects,
to mimic iterable objects,
to mimic iterator objects,
to mimic map objects