Record Class PklEvaluatorSettings

java.lang.Object
java.lang.Record
org.pkl.core.evaluatorSettings.PklEvaluatorSettings

public record PklEvaluatorSettings(@Nullable Map<String,String> externalProperties, @Nullable Map<String,String> env, @Nullable List<Pattern> allowedModules, @Nullable List<Pattern> allowedResources, @Nullable Boolean noCache, @Nullable Path moduleCacheDir, @Nullable List<Path> modulePath, @Nullable Duration timeout, @Nullable Path rootDir, @Nullable PklEvaluatorSettings.Http http) extends Record
Java version of pkl.EvaluatorSettings.
  • Constructor Details

  • Method Details

    • parse

      public static PklEvaluatorSettings parse(Value input, BiFunction<? super String,? super String,Path> pathNormalizer)
      Initializes a PklEvaluatorSettings from a raw object representation.
    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • externalProperties

      @Nullable public @Nullable Map<String,String> externalProperties()
      Returns the value of the externalProperties record component.
      Returns:
      the value of the externalProperties record component
    • env

      Returns the value of the env record component.
      Returns:
      the value of the env record component
    • allowedModules

      @Nullable public @Nullable List<Pattern> allowedModules()
      Returns the value of the allowedModules record component.
      Returns:
      the value of the allowedModules record component
    • allowedResources

      @Nullable public @Nullable List<Pattern> allowedResources()
      Returns the value of the allowedResources record component.
      Returns:
      the value of the allowedResources record component
    • noCache

      @Nullable public @Nullable Boolean noCache()
      Returns the value of the noCache record component.
      Returns:
      the value of the noCache record component
    • moduleCacheDir

      @Nullable public @Nullable Path moduleCacheDir()
      Returns the value of the moduleCacheDir record component.
      Returns:
      the value of the moduleCacheDir record component
    • modulePath

      @Nullable public @Nullable List<Path> modulePath()
      Returns the value of the modulePath record component.
      Returns:
      the value of the modulePath record component
    • timeout

      @Nullable public @Nullable Duration timeout()
      Returns the value of the timeout record component.
      Returns:
      the value of the timeout record component
    • rootDir

      @Nullable public @Nullable Path rootDir()
      Returns the value of the rootDir record component.
      Returns:
      the value of the rootDir record component
    • http

      Returns the value of the http record component.
      Returns:
      the value of the http record component