SourceRange

public class SourceRange

A half-open range of a node within a source file (i.e. of the form [start, end)).

Constructors

SourceRange

protected SourceRange(APIClient client)

Internal constructor

Methods

fromProtobuf

public static SourceRange fromProtobuf(APIClient client, Out.CocoSourceRange inputValue)

Internal constructor

getEndColumn

public final int getEndColumn()

The 1-based column number.

getEndLine

public final int getEndLine()

The 1-based line number.

getFileName

public final String getFileName()

The name of the file this was loaded from.

getStartColumn

public final int getStartColumn()

The 1-based column number.

getStartLine

public final int getStartLine()

The 1-based line number.

getValid

public final boolean getValid()

True if this represents a valid location in the original source file.