Package com._1c.g5.v8.dt.bsl.common
Interface IStringLiteralTextProvider
-
- All Known Implementing Classes:
ConcatenationStringLiteralTextProvider
,DefaultStringLiteralTextProvider
public interface IStringLiteralTextProvider
Interface for getting text fromStringLiteral
or concatenation ofStringLiteral
s
-
-
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 concreteStringLiteral
Collection<StringLiteral>
getSourceStringLiterals()
Gets all sources forgetText()
StringLiteral
sString
getText()
Gets text corresponding to theStringLiteral
or concatenation ofStringLiteral
s
-
-
-
Method Detail
-
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
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:
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
-
-