For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

OffsetInFileLocation

A basic location pointing to a specific part of a file using a global offset and length for coordinates.

The coordinates are expected to be zero indexed.

Since

8.13

Functions

Link copied to clipboard
abstract fun getLength(): Int
The length of the content starting from getOffset.
Link copied to clipboard
abstract fun getOffset(): Int
The global offset from the beginning of the file.
Link copied to clipboard
abstract fun getPath(): String
The path to the file.