Package org.pkl.core.runtime
Class VmBytes
java.lang.Object
org.pkl.core.runtime.VmValue
org.pkl.core.runtime.VmBytes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(VmValueConverter<T> converter, Iterable<Object> path) voidaccept(VmValueVisitor visitor) base64()concatenate(VmBytes right) static VmBytescreateFromConstantNodes(ExpressionNode[] elements) booleanEnables calling `vmValue.equals()` when not behind a Truffle boundary.byte[]export()voidforce(boolean allowUndefinedValues) Forces recursive (deep) evaluation of this value.longget(long index) byte[]getBytes()intgetSize()inthashCode()hex()iterator()toList()toString()Methods inherited from class org.pkl.core.runtime.VmValue
export, exportNullable, force, getPrototype, isDynamic, isListing, isMapping, isPrototype, isSequence, 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
-
-
Constructor Details
-
VmBytes
public VmBytes(byte[] bytes) -
VmBytes
-
-
Method Details
-
createFromConstantNodes
-
getVmClass
- Specified by:
getVmClassin classVmValue
-
force
public void force(boolean allowUndefinedValues) Description copied from class:VmValueForces recursive (deep) evaluation of this value. -
export
public byte[] export() -
accept
-
accept
-
equals
Description copied from class:VmValueEnables calling `vmValue.equals()` when not behind a Truffle boundary. -
hashCode
public int hashCode() -
getBytes
public byte[] getBytes() -
get
public long get(long index) -
concatenate
-
toList
-
base64
-
hex
-
getLength
public int getLength() -
getSize
-
toString
-
iterator
-