Package org.pkl.core.runtime
Class VmNull
- java.lang.Object
-
- org.pkl.core.runtime.VmValue
-
- org.pkl.core.runtime.VmNull
-
public final class VmNull extends VmValue
-
-
Method Summary
All Methods Static 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.java.lang.ObjectgetDefaultValue()VmClassgetVmClass()inthashCode()booleanisMappingDefault()static java.lang.Objectlift(@Nullable java.lang.Object nullable)java.lang.StringtoString()static @Nullable java.lang.Objectunwrap(java.lang.Object value)static VmNullwithDefault(@Nullable java.lang.Object defaultValue)static VmNullwithoutDefault()-
Methods inherited from class org.pkl.core.runtime.VmValue
export, exportNullable, force, getPrototype, isDynamic, isListing, isMapping, isPrototype, isSequence, isTyped
-
-
-
-
Method Detail
-
withoutDefault
public static VmNull withoutDefault()
-
lift
public static java.lang.Object lift(@Nullable java.lang.Object nullable)
-
unwrap
public static @Nullable java.lang.Object unwrap(java.lang.Object value)
-
getDefaultValue
public java.lang.Object getDefaultValue()
-
isMappingDefault
public boolean isMappingDefault()
-
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)
-
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
-
-