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

Field Summary
static ITextRegionWithLineInformation EMPTY_REGION
           
 
Method Summary
 int getEndLineNumber()
          The zero-based line number where the region ends.
 int getLineNumber()
          The zero-based line number where the region starts.
 ITextRegionWithLineInformation merge(ITextRegionWithLineInformation other)
           
 
Methods inherited from interface org.eclipse.xtext.util.ITextRegion
contains, contains, getLength, getOffset, merge
 

Field Detail

EMPTY_REGION

static final ITextRegionWithLineInformation EMPTY_REGION
Method Detail

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)