Package org.graalvm.polyglot
Enum Class HostAccess.MutableTargetMapping
java.lang.Object
java.lang.Enum<HostAccess.MutableTargetMapping>
org.graalvm.polyglot.HostAccess.MutableTargetMapping
- All Implemented Interfaces:
Serializable
,Comparable<HostAccess.MutableTargetMapping>
,Constable
- Enclosing class:
HostAccess
List of default host object mappings of mutable target types available in
Value.as(Class)
. The mappings map guest object traits to host object types.- Since:
- 23.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEnables default mapping of guest object arrays to host objectList
.Enables default mapping of executable guest objects to aFunctionalInterface
.Enables default mapping of guest object hashes to host objectMap
.Enables default mapping of guest object iterables to host objectIterable
.Enables default mapping of guest object iterators to host objectIterator
.Enables default mapping of guest objects with members to a Java interface.Enables default mapping of guest objects with members toMap
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static HostAccess.MutableTargetMapping[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARRAY_TO_JAVA_LIST
Enables default mapping of guest object arrays to host objectList
. This mapping is also applied when the target host object isCollection
. -
ITERATOR_TO_JAVA_ITERATOR
Enables default mapping of guest object iterators to host objectIterator
. -
ITERABLE_TO_JAVA_ITERABLE
Enables default mapping of guest object iterables to host objectIterable
. -
HASH_TO_JAVA_MAP
Enables default mapping of guest object hashes to host objectMap
. -
MEMBERS_TO_JAVA_MAP
Enables default mapping of guest objects with members toMap
. -
MEMBERS_TO_JAVA_INTERFACE
Enables default mapping of guest objects with members to a Java interface. -
EXECUTABLE_TO_JAVA_INTERFACE
Enables default mapping of executable guest objects to aFunctionalInterface
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-