Package com._1c.g5.v8.dt.bsl.common
Interface IStringLiteralTextProvider
-
- All Known Implementing Classes:
ConcatenationStringLiteralTextProvider,DefaultStringLiteralTextProvider
public interface IStringLiteralTextProviderInterface for getting text fromStringLiteralor concatenation ofStringLiterals
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.xtext.util.Pair<StringLiteral,Integer>getLocation(int offset)Gets correspondence between location in text returned bygetText()and location in concreteStringLiteralCollection<StringLiteral>getSourceStringLiterals()Gets all sources forgetText()StringLiteralsStringgetText()Gets text corresponding to theStringLiteralor concatenation ofStringLiterals
-
-
-
Method Detail
-
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
org.eclipse.xtext.util.Pair<StringLiteral,Integer> getLocation(int offset)
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
-
-