Package org.pkl.core.runtime
Class VmIntSeq
- java.lang.Object
-
- org.pkl.core.runtime.VmValue
-
- org.pkl.core.runtime.VmIntSeq
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Long>
public final class VmIntSeq extends VmValue implements java.lang.Iterable<java.lang.Long>
-
-
Constructor Summary
Constructors Constructor Description VmIntSeq(long start, long end, long step)
-
Method Summary
All 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)booleanequals(@Nullable java.lang.Object obj)Enables calling `vmValue.equals()` when not behind a Truffle boundary.java.lang.Objectexport()voidforce(boolean allowUndefinedValues)Forces recursive (deep) evaluation of this value.longgetLength()VmClassgetVmClass()inthashCode()booleanisEmpty()java.util.PrimitiveIterator.OfLongiterator()java.lang.StringtoString()-
Methods inherited from class org.pkl.core.runtime.VmValue
export, exportNullable, force, getPrototype, isDynamic, isListing, isMapping, isPrototype, isSequence, isTyped
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
getLength
public long getLength()
-
getVmClass
public VmClass getVmClass()
- Specified by:
getVmClassin classVmValue
-
force
public void force(boolean allowUndefinedValues)
Description copied from class:VmValueForces recursive (deep) evaluation of this value.
-
accept
public void accept(VmValueVisitor visitor)
-
accept
public <T> T accept(VmValueConverter<T> converter, java.lang.Iterable<java.lang.Object> path)
-
iterator
public java.util.PrimitiveIterator.OfLong iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.Long>
-
equals
public boolean equals(@Nullable 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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-