Package org.pkl.core.runtime
Class VmRegex
- java.lang.Object
-
- org.pkl.core.runtime.VmValue
-
- org.pkl.core.runtime.VmRegex
-
public final class VmRegex extends VmValue
-
-
Constructor Summary
Constructors Constructor Description VmRegex(java.util.regex.Pattern pattern)
-
Method Summary
All 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.util.regex.Patternexport()voidforce(boolean allowUndefinedValues)Forces recursive (deep) evaluation of this value.java.util.regex.PatterngetPattern()VmClassgetVmClass()inthashCode()java.util.regex.Matchermatcher(java.lang.String input)java.lang.StringtoString()-
Methods inherited from class org.pkl.core.runtime.VmValue
export, exportNullable, force, getPrototype, isDynamic, isListing, isMapping, isPrototype, isSequence, isTyped
-
-
-
-
Method Detail
-
getPattern
public java.util.regex.Pattern getPattern()
-
matcher
public java.util.regex.Matcher matcher(java.lang.String input)
-
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
-
-