Class VmDynamic


  • public final class VmDynamic
    extends VmObject
    • Constructor Detail

      • VmDynamic

        public VmDynamic​(com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame,
                         VmObject parent,
                         org.graalvm.collections.UnmodifiableEconomicMap<java.lang.Object,​ObjectMember> members,
                         int length)
    • Method Detail

      • getLength

        public int getLength()
        Returns the number of elements in this object.
      • hasElements

        public boolean hasElements()
        Tells whether this object has any elements.
      • export

        public PObject export()
        Description copied from class: VmObjectLike
        Exports this object to an external representation. Does not export local, hidden, or external properties
        Specified by:
        export in class VmObjectLike
      • accept

        public <T> T accept​(VmValueConverter<T> converter,
                            java.lang.Iterable<java.lang.Object> path)
        Specified by:
        accept in class VmValue
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from class: VmValue
        Enables calling `vmValue.equals()` when not behind a Truffle boundary.
        Specified by:
        equals in class VmValue
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getRegularMemberCount

        public int getRegularMemberCount()