Class JsonText.Line
java.lang.Object
uk.blankaspect.common.json.JsonText.Line
- All Implemented Interfaces:
ITextLine
- Enclosing class:
JsonText
-
Field Summary
Fields inherited from interface ITextLine
OFFSET_COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()Returnstrueif this line is empty.voidCombines adjacent spans that are associated with the same token.intnumSpans()Returns the number of spans of text that are associated with this line.intoffset()Returns the offset from the start of the text to the start of this line.spans()Returns a list of the spans of text that are associated with this line.text()Returns the text of this line.toString()
-
Method Details
-
text
-
offset
-
spans
Returns a list of the spans of text that are associated with this line. -
numSpans
-
toString
-
isEmpty
public boolean isEmpty()Returnstrueif this line is empty.- Returns:
trueif this line is empty.
-
normaliseSpans
public void normaliseSpans()Combines adjacent spans that are associated with the same token.
-