Package eu.bandm.tscore.base
Class RawParser.TokenMap
java.lang.Object
eu.bandm.tscore.base.RawParser.TokenMap
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 Summary
FieldsModifier and TypeFieldDescription(package private) final SortedMap
<Integer, List<Token<XMLDocumentIdentifier, Lexer.TokenType>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConcatenate source text of timepoint values which use more than one (>1) lines of input.(package private) List
<Token<XMLDocumentIdentifier, Lexer.TokenType>> get
(int pos) Returns the list of tokens in source order which start at the given column number.(package private) boolean
isEmpty()
(package private) int
lastKey()
Check whether each collected fragment uses exactly one(1) input line, and return this only text as a (trivial) concatenation result.
-
Field Details
-
map
-
-
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
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
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.
-