Interface IAvailableStringLiteralProvider
-
- All Known Subinterfaces:
IAvailableStringLiteralProviderExtension,IAvailableStringLiteralProviderImportedNamesExtension,IStringLiteralProposalProvider,IStringLiteralProposalProviderExtension
- All Known Implementing Classes:
AbstractStringLiteralProposalProvider,GraphicalSchemeStringLiteralProposalProvider,StringLiteralProposalProviderSetParameterValue,StringLiteralProposalProviderValueToFormAttr
public interface IAvailableStringLiteralProviderSpecial interface for validating of using ofStringLiteralin 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 booleanisAppropriate(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- checkingStringLiteralfor availability of validation, can't benull- Returns:
trueif validation is available for this context,falseotherwise
-
validate
List<String> validate(StringLiteral context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService)
ValidatesStringLiteral. Checks onlyStringLiteralin one line.- Parameters:
context- validatingStringLiteral, can't benullscopeProvider- actualIScopeProviderfor context of usingStringLiteral, can't benullslicePredicateService- actualIIndexSlicePredicateServicefor 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
StringLiteralcontent is correct for this context. Nevernull
-
-