Class RawParser.TokenMap

java.lang.Object
eu.bandm.tscore.base.RawParser.TokenMap
Enclosing class:
RawParser<D>

class RawParser.TokenMap extends Object
Represents the intermediate result of parsing one or more adjacent input lines. These lines are the maximal sequence which correspond to a "T line" or the same voice parameter.
  • Field Details

  • Constructor Details

    • TokenMap

      TokenMap()
  • Method Details

    • get

      Returns the list of tokens in source order which start at the given column number.
    • lastKey

      int lastKey()
    • isEmpty

      boolean isEmpty()
    • flatten

      protected SortedMap<Integer,String> flatten(String separator)
      Concatenate source text of timepoint values which use more than one (>1) lines of input. (Currently only for timepoint text.)
      Returns:
      a map from the starting column to the concatenated texts. Cf. Util/getParamText()
    • singleCheck

      protected SortedMap<Integer,String> singleCheck()
      Check whether each collected fragment uses exactly one(1) input line, and return this only text as a (trivial) concatenation result. (Currently only for timepoint text.)
      Returns:
      a map from the starting column to the single text.