Interface Span

All Known Subinterfaces:
LinkSpan
All Known Implementing Classes:
LinkSpanImpl, SpanImpl

public interface Span
A reference to a piece of the input text, either a link (see LinkSpan) or plain text.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
  • Method Details

    • getBeginIndex

      int getBeginIndex()
      Returns:
      begin index (inclusive) in the original input that this link starts at
    • getEndIndex

      int getEndIndex()
      Returns:
      end index (exclusive) in the original input that this link ends at; in other words, index of first character after link