Class VmDynamic


public final class VmDynamic extends VmObject
  • Constructor Details

    • VmDynamic

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

    • empty

      public static VmDynamic empty()
    • getVmClass

      public VmClass getVmClass()
      Specified by:
      getVmClass in class VmValue
    • getLength

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

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

      public boolean isSequence()
      Description copied from class: VmValue
      Tells if this value is a VmCollection, VmListing, or VmDynamic with elements.
      Overrides:
      isSequence in class VmValue
    • 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 void accept(VmValueVisitor visitor)
      Specified by:
      accept in class VmValue
    • accept

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

      public boolean equals(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 Object
    • getRegularMemberCount

      public int getRegularMemberCount()