package saker.std.api.file.location
FileLocation that represents a file that is accessible in the build file hierarchy.
The path of the file is available using getPath().
Clients shouldn't implement this interface.
Use create(
public default void | accept( Accepts a visitor and calls an appropriate visit method on it. |
public static ExecutionFileLocation | Creates a new execution file location. |
public SakerPath | getPath() Gets the absolute execution path of the file. |
public default SakerPath | Use getPath() instead. |
From: FileLocation |
Overridden from: FileLocation
Accepts a visitor and calls an appropriate
visit
method on it.visitorThe visitor.
NullPointerExceptionIf the visitor is
null
.public static ExecutionFileLocation create(SakerPath path) throws NullPointerException, IllegalArgumentException
Creates a new execution file location.
The argument path must be absolute.
pathThe execution path of the file.
The created file location.
NullPointerExceptionIf the argument is
null
.IllegalArgumentExceptionIf the argument is not absolute.
Gets the absolute execution path of the file.
The absolute path of the file.
Use getPath() instead.
Same as getPath().
This method is present to support automatic conversion to SakerPath using the DataConverterUtils class. This makes the execution file location assignable to task input parameters with the SakerPath type.
The path.