org.eclipse.xtext.util
Interface ITextRegionWithLineInformation
- All Superinterfaces:
- ITextRegion
- All Known Subinterfaces:
- ILocationData
- All Known Implementing Classes:
- LocationData, TextRegionWithLineInformation
@NonNullByDefault
public interface ITextRegionWithLineInformation
- extends ITextRegion
- Since:
- 2.3
- Author:
- Sebastian Zarnekow - Initial contribution and API
EMPTY_REGION
static final ITextRegionWithLineInformation EMPTY_REGION
getLineNumber
int getLineNumber()
- The zero-based line number where the region starts.
- Returns:
- the start line (zero based)
getEndLineNumber
int getEndLineNumber()
- The zero-based line number where the region ends.
- Returns:
- the end line (zero based)
merge
ITextRegionWithLineInformation merge(ITextRegionWithLineInformation other)