Package com._1c.g5.v8.dt.bsl.common
Interface IStringLiteralTextProvider
- All Known Implementing Classes:
ConcatenationStringLiteralTextProvider
,DefaultStringLiteralTextProvider
public interface IStringLiteralTextProvider
Interface for getting text from
StringLiteral
or concatenation of StringLiteral
s-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.xtext.util.Pair<StringLiteral,
Integer> getLocation
(int offset) Gets correspondence between location in text returned bygetText()
and location in concreteStringLiteral
Gets all sources forgetText()
StringLiteral
sgetText()
Gets text corresponding to theStringLiteral
or concatenation ofStringLiteral
s
-
Method Details
-
getText
String getText()Gets text corresponding to theStringLiteral
or concatenation ofStringLiteral
s- Returns:
- text corresponding to the
StringLiteral
or concatenation ofStringLiteral
s. This text should not have special Bsl language symbols as '|'. Nevernull
-
getLocation
Gets correspondence between location in text returned bygetText()
and location in concreteStringLiteral
- Parameters:
offset
- offset in text returned bygetText()
- Returns:
StringLiteral
and offset in it corresponding to the offset ingetText()
, can benull
if offset is less zero or more or equals thengetText()
length
-
getSourceStringLiterals
Collection<StringLiteral> getSourceStringLiterals()Gets all sources forgetText()
StringLiteral
s- Returns:
- sources for
getText()
, collection nevernull
, never empty, Collection can have more the oneStringLiteral
if thisIStringLiteralTextProvider
correspondence to the concatenation ofStringLiteral
-