Interface IAvailableStringLiteralProvider
-
- All Known Subinterfaces:
IAvailableStringLiteralProviderExtension
,IAvailableStringLiteralProviderImportedNamesExtension
,IStringLiteralProposalProvider
,IStringLiteralProposalProviderExtension
- All Known Implementing Classes:
AbstractStringLiteralProposalProvider
,GraphicalSchemeStringLiteralProposalProvider
,StringLiteralProposalProviderSetParameterValue
,StringLiteralProposalProviderValueToFormAttr
public interface IAvailableStringLiteralProvider
Special interface for validating of using ofStringLiteral
in Built-in language
Methods of this interface process all cases of usingStringLiteral
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isAppropriate(StringLiteral context)
Checks context for availability of validationList<String>
validate(StringLiteral context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService)
ValidatesStringLiteral
.
-
-
-
Method Detail
-
isAppropriate
boolean isAppropriate(StringLiteral context)
Checks context for availability of validation- Parameters:
context
- checkingStringLiteral
for availability of validation, can't benull
- Returns:
true
if validation is available for this context,false
otherwise
-
validate
List<String> validate(StringLiteral context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService)
ValidatesStringLiteral
. Checks onlyStringLiteral
in one line.- Parameters:
context
- validatingStringLiteral
, can't benull
scopeProvider
- actualIScopeProvider
for context of usingStringLiteral
, can't benull
slicePredicateService
- actualIIndexSlicePredicateService
for context of usingStringLiteral
, can't benull
- Returns:
- list of validation issue messages. This messages will be wrapped to the validation diagnostics, or empty list if
StringLiteral
content is correct for this context. Nevernull
-
-