Package org.pkl.core.project
Class Project
java.lang.Object
org.pkl.core.project.Project
Java representation of module
pkl.Project.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.getTests()inthashCode()static Projectload(Evaluator evaluator, ModuleSource moduleSource) static Projectload(ModuleSource moduleSource) Loads a project from the given source.static ProjectloadFromPath(Path path) Convenience method to load a project with the default security manager, no timeout, and the default stack frame transformer.static ProjectloadFromPath(Path path, SecurityManager securityManager, Duration timeout) Convenience method to load a project with the default stack frame transformer.static ProjectloadFromPath(Path path, SecurityManager securityManager, Duration timeout, StackFrameTransformer stackFrameTransformer, Map<String, String> envVars) Loads Project data from the givenPath.static ProjectparseProject(PObject module)
-
Method Details
-
loadFromPath
public static Project loadFromPath(Path path, SecurityManager securityManager, @Nullable Duration timeout, StackFrameTransformer stackFrameTransformer, Map<String, String> envVars) Loads Project data from the givenPath.Evaluates a module's
output.valueto allow for embedding a project within a template.- Throws:
PklException- if an error occurred while evaluating the project file.
-
loadFromPath
public static Project loadFromPath(Path path, SecurityManager securityManager, @Nullable Duration timeout) Convenience method to load a project with the default stack frame transformer. -
loadFromPath
Convenience method to load a project with the default security manager, no timeout, and the default stack frame transformer. -
load
Loads a project from the given source. -
load
-
parseProject
- Throws:
URISyntaxException
-
getPackage
-
getSettings
Deprecated, for removal: This API element is subject to removal in a future version.UsegetEvaluatorSettings()instead. -
getEvaluatorSettings
-
getProjectFileUri
-
getTests
-
equals
-
hashCode
public int hashCode() -
getDependencies
-
getLocalProjectDependencies
-
getProjectBaseUri
-
getProjectDir
-
getAnnotations
-