Top Description Methods
com.amazon.ion

public Interface TextSpan

Known Direct Implementers
com.amazon.ion.impl.IonReaderTextUserX.IonReaderTextSpan
Imports
com.amazon.ion.facet.Faceted, com.amazon.ion.util.Spans

Exposes the positions of a Span in the form of one-based line and column numbers within the source text stream.

Warning

This interface should not be implemented or extended by code outside of this library.

As with all spans, positions lie between values, and when the start and finish positions are equal, the span is said to be empty.

To get one of these from a Span, use asFacet(TextSpan.class) or one of the helpers from Spans.

Method Summary

Modifier and TypeMethod and Description
public long
getFinishColumn()

Returns the column number of this span's finish position, counting from one.

public long
getFinishLine()

Returns the line number of this span's finish position, counting from one.

public long
getStartColumn()

Returns the column number of this span's start position, counting from one.

public long
getStartLine()

Returns the line number of this span's start position, counting from one.

Method Detail

getFinishColumnback to summary
public long getFinishColumn()

Returns the column number of this span's finish position, counting from one. In most cases, the finish position is implicit and this method returns -1. That's since in general (notably for containers) the finish offset can't be determined without significant effort to parse to the end of the value.

getFinishLineback to summary
public long getFinishLine()

Returns the line number of this span's finish position, counting from one. In most cases, the finish position is implicit and this method returns -1. That's since in general (notably for containers) the finish offset can't be determined without significant effort to parse to the end of the value.

getStartColumnback to summary
public long getStartColumn()

Returns the column number of this span's start position, counting from one.

getStartLineback to summary
public long getStartLine()

Returns the line number of this span's start position, counting from one.