SourceRegion

public class SourceRegion implements ISourceRegion

Constructors

SourceRegion

public SourceRegion(int offset)

Creates a zero-length source region from a single offset. Row and column fields are set to -1 to indicate that they are not supported.

Parameters:
  • offset – Offset in the source file.

SourceRegion

public SourceRegion(int startOffset, int endOffset)

Creates a source region from a starting and ending offset. Row and column fields are set to -1 to indicate that they are not supported.

Parameters:
  • startOffset – Starting offset in the source file.
  • endOffset – Ending offset in the source file.

SourceRegion

public SourceRegion(int startOffset, int startRow, int startColumn, int endOffset, int endRow, int endColumn)

Methods

contains

public boolean contains(ISourceRegion region)

endColumn

public int endColumn()

endOffset

public int endOffset()

endRow

public int endRow()

equals

public boolean equals(Object obj)

hashCode

public int hashCode()

length

public int length()

startColumn

public int startColumn()

startOffset

public int startOffset()

startRow

public int startRow()

toString

public String toString()