Package org.pkl.core.runtime
Class VmSet
java.lang.Object
org.pkl.core.runtime.VmValue
org.pkl.core.runtime.VmCollection
org.pkl.core.runtime.VmSet
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(VmValueConverter<T> converter, Iterable<Object> path) voidaccept(VmValueVisitor visitor) builder()static VmCollection.Builder<VmSet> concatenate(VmCollection other) booleanstatic VmSetstatic VmSetcreateFromConstantNodes(ExpressionNode[] elements) drop(long n) dropLast(long n) booleanEnables calling `vmValue.equals()` when not behind a Truffle boundary.export()voidforce(boolean allowUndefinedValues) Forces recursive (deep) evaluation of this value.getFirst()getLast()intgetRest()inthashCode()booleanisEmpty()booleaniterator()static VmSetrepeat(long n) reverse()split(long index) splitOrNull(long index) take(long n) takeLast(long n) Object[]toArray()toList()toSet()Methods inherited from class org.pkl.core.runtime.VmCollection
checkLengthOne, checkNonEmpty, checkPositive, endsWith, flatten, isSequence, join, replaceRange, replaceRangeOrNull, startsWith, toString, zipMethods inherited from class org.pkl.core.runtime.VmValue
export, exportNullable, force, getPrototype, isDynamic, isListing, isMapping, isPrototype, isTypedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY
-
-
Method Details
-
of
-
create
-
createFromConstantNodes
-
getVmClass
- Specified by:
getVmClassin classVmValue
-
getLength
public int getLength()- Specified by:
getLengthin classVmCollection
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classVmCollection
-
isLengthOne
public boolean isLengthOne()- Specified by:
isLengthOnein classVmCollection
-
add
- Specified by:
addin classVmCollection
-
concatenate
- Specified by:
concatenatein classVmCollection
-
iterator
-
reverseIterator
- Specified by:
reverseIteratorin classVmCollection
-
builder
- Specified by:
builderin classVmCollection
-
builder
-
getFirst
-
getFirstOrNull
-
getRest
-
getRestOrNull
-
getLast
-
getLastOrNull
-
getSingle
-
getSingleOrNull
-
contains
-
split
-
splitOrNull
-
take
-
takeLast
-
drop
-
dropLast
-
repeat
-
reverse
-
toArray
-
toList
-
toSet
-
toListing
-
toDynamic
-
force
public void force(boolean allowUndefinedValues) Description copied from class:VmValueForces recursive (deep) evaluation of this value. -
export
-
accept
-
accept
-
equals
Description copied from class:VmValueEnables calling `vmValue.equals()` when not behind a Truffle boundary. -
hashCode
public int hashCode()
-