Interface InputBuffer

All Known Implementing Classes:
ImmutableInputBuffer

public interface InputBuffer
Input text to be parsed.

This interface is not intended to be implemented by clients.

Since:
1.16
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    char
    charAt(int index)
     
    extractLine(int lineNumber)
    Returns content of a line for a given line number.
    int
    Returns number of lines, which is always equal to number of line terminators plus 1.
    getPosition(int index)
     
    int
     
  • Method Details

    • length

      int length()
    • charAt

      char charAt(int index)
    • extractLine

      String extractLine(int lineNumber)
      Returns content of a line for a given line number. Numbering of lines starts from 1.
    • getLineCount

      int getLineCount()
      Returns number of lines, which is always equal to number of line terminators plus 1.
    • getPosition

      InputBuffer.Position getPosition(int index)