saker.build Documentation TaskDoc JavaDoc Packages
public interface ScriptInformationProvider
Interface providing information about various aspects of a parsed build script.

Implementations are strongly recommended to implement the Externalizable interface as well.

This interface is used by the build system to construct script stack traces if a script task reports an error.

Methods
public ScriptPosition
Gets the position of a task in the script.
public ScriptPosition
Gets the script position of a build target in the script.
Gets the position of a task in the script.

This method can be used to look up the location of a task with a given identifier in the build script.

taskidThe task identifier to look up.
The script position of the specified task or null if not found.
NullPointerExceptionIf the task identifier is null.
Gets the script position of a build target in the script.
nameThe name of the build target.
The script position of the specified target or null if not found.
NullPointerExceptionIf the name is null.