Class VmIntSeq

  • All Implemented Interfaces:
    java.lang.Iterable<java.lang.Long>

    public final class VmIntSeq
    extends VmValue
    implements java.lang.Iterable<java.lang.Long>
    • Field Detail

      • start

        public final long start
      • end

        public final long end
      • step

        public final long step
      • last

        public final long last
    • Constructor Detail

      • VmIntSeq

        public VmIntSeq​(long start,
                        long end,
                        long step)
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • getLength

        public long getLength()
      • force

        public void force​(boolean allowUndefinedValues)
        Description copied from class: VmValue
        Forces recursive (deep) evaluation of this value.
        Specified by:
        force in class VmValue
      • export

        public java.lang.Object export()
        Specified by:
        export in class VmValue
      • accept

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

        public java.util.PrimitiveIterator.OfLong iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.Long>
      • equals

        public boolean equals​(@Nullable 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object