Package org.pkl.core.runtime
Class VmList
java.lang.Object
org.pkl.core.runtime.VmValue
org.pkl.core.runtime.VmCollection
org.pkl.core.runtime.VmList
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(VmValueConverter<T> converter, Iterable<Object> path) voidaccept(VmValueVisitor visitor) builder()concatenate(VmCollection other) booleanstatic VmListstatic VmListstatic VmListstatic VmListcreateFromConstantNodes(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.get(long index) getFirst()getLast()longintgetOrNull(long index) getRest()inthashCode()longindexOfOrNull(Object elem) booleanisEmpty()booleaniterator()longlastIndexOf(Object elem) lastIndexOfOrNull(Object elem) static VmListstatic VmListrepeat(long n) replaceOrNull(long index, Object element) reverse()split(long index) splitOrNull(long index) subList(long start, long exclusiveEnd) subListOrNull(long start, long exclusiveEnd) 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
-
of
-
create
-
create
-
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
-
getLastIndex
public long getLastIndex() -
add
- Specified by:
addin classVmCollection
-
replace
-
replaceOrNull
-
concatenate
- Specified by:
concatenatein classVmCollection
-
get
-
getOrNull
-
subList
-
subListOrNull
-
iterator
-
reverseIterator
- Specified by:
reverseIteratorin classVmCollection
-
builder
- Specified by:
builderin classVmCollection
-
getFirst
-
getFirstOrNull
-
getRest
-
getRestOrNull
-
getLast
-
getLastOrNull
-
getSingle
-
getSingleOrNull
-
contains
-
indexOf
-
indexOfOrNull
-
lastIndexOf
-
lastIndexOfOrNull
-
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()
-