Member predicate StringlikeLiteral::getNumberOfComponents
Gets the number of components in this string or string-like literal.
For the empty string "", the result is 0.
For the string "foo", the result is 1: there is a single
StringTextComponent.
For the following example, the result is 3: there is a
StringTextComponent for the substring "foo_"; a
StringEscapeSequenceComponent for the escaped quote; and a
StringInterpolationComponent for the interpolation.
"foo\"#{bar}"