Interface SourceMapper
- All Known Implementing Classes:
SegmentedSourceMapper
public interface SourceMapper
Maps offsets in generated/processed text back to the original source.
-
Method Summary
Modifier and TypeMethodDescriptionoriginalPos(int generatedOffset) Map an offset in the generated text back to its originalSourcePos.originalSpan(int generatedStart, int generatedEnd) Map a half-open range[generatedStart, generatedEnd)in the generated text back to an originalSourceSpan.
-
Method Details
-
originalPos
-
originalSpan
Map a half-open range[generatedStart, generatedEnd)in the generated text back to an originalSourceSpan.
-