Package snap.parse

Class TokenDoc

java.lang.Object
snap.parse.TokenDoc

public class TokenDoc extends Object
This class holds TokenLines.
  • Field Details

    • _chars

      protected CharSequence _chars
    • _startLineIndex

      protected int _startLineIndex
  • Constructor Details

    • TokenDoc

      public TokenDoc(CharSequence theChars)
      Constructor.
  • Method Details

    • getLineCount

      public int getLineCount()
      Returns the number of lines.
    • getLine

      public TokenLine getLine(int anIndex)
      Returns the individual line at given index.
    • addLineForCharRange

      public TokenLine addLineForCharRange(int startCharIndex, int endCharIndex)
      Adds a line for char range.
    • getLastLine

      public TokenLine getLastLine()
      Returns the last line.