Package org.pkl.core.evaluatorSettings
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionPklEvaluatorSettings(@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) Creates an instance of aPklEvaluatorSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedModulesrecord component.Returns the value of theallowedResourcesrecord component.env()Returns the value of theenvrecord component.booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalPropertiesrecord component.inthashCode()Returns a hash code value for this object.http()Returns the value of thehttprecord component.Returns the value of themoduleCacheDirrecord component.Returns the value of themodulePathrecord component.noCache()Returns the value of thenoCacherecord component.static PklEvaluatorSettingsInitializes aPklEvaluatorSettingsfrom a raw object representation.rootDir()Returns the value of therootDirrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PklEvaluatorSettings
public PklEvaluatorSettings(@Nullable @Nullable Map<String, String> externalProperties, @Nullable @Nullable Map<String, String> env, @Nullable @Nullable List<Pattern> allowedModules, @Nullable @Nullable List<Pattern> allowedResources, @Nullable @Nullable Boolean noCache, @Nullable @Nullable Path moduleCacheDir, @Nullable @Nullable List<Path> modulePath, @Nullable @Nullable Duration timeout, @Nullable @Nullable Path rootDir, @Nullable @Nullable PklEvaluatorSettings.Http http) Creates an instance of aPklEvaluatorSettingsrecord class.- Parameters:
externalProperties- the value for theexternalPropertiesrecord componentenv- the value for theenvrecord componentallowedModules- the value for theallowedModulesrecord componentallowedResources- the value for theallowedResourcesrecord componentnoCache- the value for thenoCacherecord componentmoduleCacheDir- the value for themoduleCacheDirrecord componentmodulePath- the value for themodulePathrecord componenttimeout- the value for thetimeoutrecord componentrootDir- the value for therootDirrecord componenthttp- the value for thehttprecord component
-
-
Method Details
-
parse
public static PklEvaluatorSettings parse(Value input, BiFunction<? super String, ? super String, Path> pathNormalizer) Initializes aPklEvaluatorSettingsfrom a raw object representation. -
equals
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 withObjects::equals(Object,Object). -
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. -
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. -
externalProperties
Returns the value of theexternalPropertiesrecord component.- Returns:
- the value of the
externalPropertiesrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
allowedModules
Returns the value of theallowedModulesrecord component.- Returns:
- the value of the
allowedModulesrecord component
-
allowedResources
Returns the value of theallowedResourcesrecord component.- Returns:
- the value of the
allowedResourcesrecord component
-
noCache
Returns the value of thenoCacherecord component.- Returns:
- the value of the
noCacherecord component
-
moduleCacheDir
Returns the value of themoduleCacheDirrecord component.- Returns:
- the value of the
moduleCacheDirrecord component
-
modulePath
Returns the value of themodulePathrecord component.- Returns:
- the value of the
modulePathrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
rootDir
Returns the value of therootDirrecord component.- Returns:
- the value of the
rootDirrecord component
-
http
Returns the value of thehttprecord component.- Returns:
- the value of the
httprecord component
-