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 StringLiterals-
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 concreteStringLiteralGets all sources forgetText()StringLiteralsgetText()Gets text corresponding to theStringLiteralor concatenation ofStringLiterals
-
Method Details
-
getText
String getText()Gets text corresponding to theStringLiteralor concatenation ofStringLiterals- Returns:
- text corresponding to the
StringLiteralor concatenation ofStringLiterals. 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:
StringLiteraland offset in it corresponding to the offset ingetText(), can benullif offset is less zero or more or equals thengetText()length
-
getSourceStringLiterals
Collection<StringLiteral> getSourceStringLiterals()Gets all sources forgetText()StringLiterals- Returns:
- sources for
getText(), collection nevernull, never empty, Collection can have more the oneStringLiteralif thisIStringLiteralTextProvidercorrespondence to the concatenation ofStringLiteral
-