Package com._1c.g5.v8.dt.bsl.common
Class ConcatenationStringLiteralTextProvider
- java.lang.Object
- 
- com._1c.g5.v8.dt.bsl.common.ConcatenationStringLiteralTextProvider
 
- 
- All Implemented Interfaces:
- IStringLiteralTextProvider
 
 public class ConcatenationStringLiteralTextProvider extends Object implements IStringLiteralTextProvider Implementation ofIStringLiteralTextProviderconcatenates texts from severalIStringLiteralTextProviders
- 
- 
Constructor SummaryConstructors Constructor Description ConcatenationStringLiteralTextProvider(IStringLiteralTextProvider... textProviders)Instantiates a new concatenation string of several string literal text provider.ConcatenationStringLiteralTextProvider(Collection<IStringLiteralTextProvider> textProviders)Instantiates a new concatenation string of several string literal text providers.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.xtext.util.Pair<StringLiteral,Integer>getLocation(int offset)Gets correspondence between location in text returned byIStringLiteralTextProvider.getText()and location in concreteStringLiteralCollection<StringLiteral>getSourceStringLiterals()Gets all sources forIStringLiteralTextProvider.getText()StringLiteralsStringgetText()Gets text corresponding to theStringLiteralor concatenation ofStringLiterals
 
- 
- 
- 
Constructor Detail- 
ConcatenationStringLiteralTextProviderpublic ConcatenationStringLiteralTextProvider(Collection<IStringLiteralTextProvider> textProviders) Instantiates a new concatenation string of several string literal text providers.- Parameters:
- textProviders- concatenating- IStringLiteralTextProvider, cannot be- null
 
 - 
ConcatenationStringLiteralTextProviderpublic ConcatenationStringLiteralTextProvider(IStringLiteralTextProvider... textProviders) Instantiates a new concatenation string of several string literal text provider.- Parameters:
- textProviders- the text providers, cannot be- null.
 
 
- 
 - 
Method Detail- 
getTextpublic String getText() Description copied from interface:IStringLiteralTextProviderGets text corresponding to theStringLiteralor concatenation ofStringLiterals- Specified by:
- getTextin interface- IStringLiteralTextProvider
- Returns:
- text corresponding to the StringLiteralor concatenation ofStringLiterals. This text should not have special Bsl language symbols as '|'. Nevernull
 
 - 
getLocationpublic org.eclipse.xtext.util.Pair<StringLiteral,Integer> getLocation(int offset) Description copied from interface:IStringLiteralTextProviderGets correspondence between location in text returned byIStringLiteralTextProvider.getText()and location in concreteStringLiteral- Specified by:
- getLocationin interface- IStringLiteralTextProvider
- Parameters:
- offset- offset in text returned by- IStringLiteralTextProvider.getText()
- Returns:
- StringLiteraland offset in it corresponding to the offset in- IStringLiteralTextProvider.getText(), can be- nullif offset is less zero or more or equals then- IStringLiteralTextProvider.getText()length
 
 - 
getSourceStringLiteralspublic Collection<StringLiteral> getSourceStringLiterals() Description copied from interface:IStringLiteralTextProviderGets all sources forIStringLiteralTextProvider.getText()StringLiterals- Specified by:
- getSourceStringLiteralsin interface- IStringLiteralTextProvider
- Returns:
- sources for IStringLiteralTextProvider.getText(), collection nevernull, never empty, Collection can have more the oneStringLiteralif thisIStringLiteralTextProvidercorrespondence to the concatenation ofStringLiteral
 
 
- 
 
-