Java API

language.sourcepos

Source position tracking utilities.

Detailed Javadoc references open in a new tab.

Classes and interfaces

CharCursor
Stateless text + stateful index; safe peeking; maintains line/column via LineMap.
LineMap
Fast line lookup by maintaining offsets of line starts.
SegmentedSourceMapper
Mapping implementation that tracks contiguous segments of generated text back to original LineMaps.
SegmentedSourceMapper.Builder
SourceMapper
Maps offsets in generated/processed text back to the original source.
SourcePos
1-based line/column position within a logical source file with absolute offset.
SourceSpan
Inclusive start, exclusive end span within a single logical source file.

Reference

Full package documentation · Search API · Complete index