Package org.pkl.core.runtime
Class VmMapping
- java.lang.Object
-
- org.pkl.core.runtime.VmValue
-
- org.pkl.core.runtime.VmObjectLike
-
- org.pkl.core.runtime.VmObject
-
- org.pkl.core.runtime.VmMapping
-
public final class VmMapping extends VmObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pkl.core.runtime.VmObjectLike
VmObjectLike.ForcedMemberValueConsumer, VmObjectLike.MemberValueConsumer
-
-
Field Summary
-
Fields inherited from class org.pkl.core.runtime.VmObject
cachedHash, cachedValues, members, parent
-
Fields inherited from class org.pkl.core.runtime.VmObjectLike
enclosingFrame, extraStorage
-
-
Constructor Summary
Constructors Constructor Description VmMapping(com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame, VmObject parent, org.graalvm.collections.UnmodifiableEconomicMap<java.lang.Object,ObjectMember> members)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(VmValueConverter<T> converter, java.lang.Iterable<java.lang.Object> path)voidaccept(VmValueVisitor visitor)static VmMappingempty()booleanequals(java.lang.Object obj)Enables calling `vmValue.equals()` when not behind a Truffle boundary.java.util.Map<java.lang.Object,java.lang.Object>export()Exports this object to an external representation.VmSetgetAllKeys()intgetEntryCount()VmClassgetVmClass()inthashCode()static booleanisDefaultProperty(java.lang.Object propertyKey)java.util.Map<java.lang.Object,java.lang.Object>toMap()-
Methods inherited from class org.pkl.core.runtime.VmObject
exportMembers, force, force, forceAndIterateMemberValues, getCachedValue, getMember, getMembers, getParent, hasCachedValue, hasMember, iterateAlreadyForcedMemberValues, iterateMembers, iterateMemberValues, lateInitParent, setCachedValue, toString
-
Methods inherited from class org.pkl.core.runtime.VmObjectLike
getEnclosingFrame, getEnclosingOwner, getEnclosingReceiver, getExtraStorage, hasExtraStorage, isModuleObject, setExtraStorage
-
Methods inherited from class org.pkl.core.runtime.VmValue
export, exportNullable, force, getPrototype, isDynamic, isListing, isMapping, isPrototype, isSequence, isTyped
-
-
-
-
Constructor Detail
-
VmMapping
public VmMapping(com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame, VmObject parent, org.graalvm.collections.UnmodifiableEconomicMap<java.lang.Object,ObjectMember> members)
-
-
Method Detail
-
empty
public static VmMapping empty()
-
isDefaultProperty
public static boolean isDefaultProperty(java.lang.Object propertyKey)
-
getVmClass
public VmClass getVmClass()
- Specified by:
getVmClassin classVmValue
-
getAllKeys
public VmSet getAllKeys()
-
export
public java.util.Map<java.lang.Object,java.lang.Object> export()
Description copied from class:VmObjectLikeExports this object to an external representation. Does not export local, hidden, or external properties- Specified by:
exportin classVmObjectLike
-
toMap
public java.util.Map<java.lang.Object,java.lang.Object> toMap()
-
accept
public void accept(VmValueVisitor visitor)
-
accept
public <T> T accept(VmValueConverter<T> converter, java.lang.Iterable<java.lang.Object> path)
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:VmValueEnables calling `vmValue.equals()` when not behind a Truffle boundary.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getEntryCount
public int getEntryCount()
-
-