Interface IAvailableStringLiteralProviderExtension
- All Superinterfaces:
IAvailableStringLiteralProvider
- All Known Subinterfaces:
IAvailableStringLiteralProviderImportedNamesExtension
,IStringLiteralProposalProviderExtension
- All Known Implementing Classes:
AbstractStringLiteralProposalProvider
,GraphicalSchemeStringLiteralProposalProvider
,LiteralProposalProviderAttachIdleHandler
,LiteralProposalProviderGlobalAttachHandlers
,LiteralProposalProviderSetAction
,StringLiteralProposalFormFunctionalOption
,StringLiteralProposalProviderActionCtor
,StringLiteralProposalProviderBackgroundJobsManager
,StringLiteralProposalProviderCommonForm
,StringLiteralProposalProviderCommonTemplate
,StringLiteralProposalProviderCreateWsProxy
,StringLiteralProposalProviderDataLockAdd
,StringLiteralProposalProviderDataLockItemSetValue
,StringLiteralProposalProviderFindByAttribute
,StringLiteralProposalProviderFuncCtor
,StringLiteralProposalProviderFunctionalOption
,StringLiteralProposalProviderGetOrOpenForm
,StringLiteralProposalProviderIndexAccess
,StringLiteralProposalProviderMdObjectForm
,StringLiteralProposalProviderMdObjectTemplate
,StringLiteralProposalProviderMethodFindForArrayInFillCheckProcessing
,StringLiteralProposalProviderMethodType
,StringLiteralProposalProviderOperatorCtor
,StringLiteralProposalProviderPredefinedValue
,StringLiteralProposalProviderRights
,StringLiteralProposalProviderSetParameterValue
,StringLiteralProposalProviderSort
,StringLiteralProposalProviderTotal
,StringLiteralProposalProviderTypeDescription
,StringLiteralProposalProviderUuid
,StringLiteralProposalProviderValueToFormAttr
,StringLiteralProposalProviderWebSocketClientConnectionHandlers
,StringLiteralProposalProviderXdtoFactory
,StringLiteralProposalProviderXdtoFactoryPackage
,StringLiteralProposalProviderXdtoFactoryWriteXmlPackage
Extension for
IAvailableStringLiteralProvider
with special methods, that works with parsed context of using StringLiteral
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAppropriate
(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, List<Expression>, Integer> context) Checks context for availability of proposalsboolean
isCorrectValue
(String content, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, List<Expression>, Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService) Checks that content of theStringLiteral
correct in this context.Methods inherited from interface com._1c.g5.v8.dt.bsl.validation.stringliterals.IAvailableStringLiteralProvider
isAppropriate, validate
-
Method Details
-
isAppropriate
boolean isAppropriate(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, List<Expression>, Integer> context) Checks context for availability of proposals- Parameters:
context
- contains- parentObject object contains string literal in its parameters
- allExpr all parameters of
parentObject
- paramNumber number of string literal in parameter method's list
- Returns:
true
if proposals available for this context
-
isCorrectValue
boolean isCorrectValue(String content, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, List<Expression>, Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService) Checks that content of theStringLiteral
correct in this context. Checks onlyStringLiteral
in one line.- Parameters:
content
- content of theStringLiteral
without quote, can't benull
context
- contains- parentObject object contains string literal in its parameters
- allExpr all parameters of
parentObject
- paramNumber number of string literal in parameter method's list
null
scopeProvider
- actualIScopeProvider
, can't benull
slicePredicateService
- actualIIndexSlicePredicateService
, can't benull
- Returns:
true
if content of theStringLiteral
correct in this context,false
otherwise
-