Package org.pkl.core.runtime
Class VmValue
java.lang.Object
org.pkl.core.runtime.VmValue
- Direct Known Subclasses:
VmBytes,VmClass,VmCollection,VmDataSize,VmDuration,VmIntSeq,VmMap,VmNull,VmObjectLike,VmPair,VmRegex,VmTypeAlias
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <T> Taccept(VmValueConverter<T> converter, Iterable<Object> path) abstract voidaccept(VmValueVisitor visitor) abstract booleanEnables calling `vmValue.equals()` when not behind a Truffle boundary.abstract Objectexport()static ObjectUsed to export values other than object member values.exportNullable(@Nullable Object value) Used to export object member values.abstract voidforce(boolean allowUndefinedValues) Forces recursive (deep) evaluation of this value.static voidForces recursive (deep) evaluation of the given value.abstract VmClassbooleanbooleanbooleanbooleanbooleanbooleanisTyped()
-
Constructor Details
-
VmValue
public VmValue()
-
-
Method Details
-
getVmClass
-
getPrototype
-
isPrototype
public boolean isPrototype() -
isDynamic
public boolean isDynamic() -
isListing
public boolean isListing() -
isMapping
public boolean isMapping() -
isTyped
public boolean isTyped() -
isSequence
public boolean isSequence() -
force
public abstract void force(boolean allowUndefinedValues) Forces recursive (deep) evaluation of this value. -
export
-
accept
-
accept
-
force
Forces recursive (deep) evaluation of the given value. -
export
Used to export values other than object member values. Such values aren't `@Nullable` (but can be `VmNull`). -
exportNullable
Used to export object member values. Such values are `null` if they haven't been forced. -
equals
Enables calling `vmValue.equals()` when not behind a Truffle boundary.
-