Interface IAvailableStringLiteralServiceProvider
-
public interface IAvailableStringLiteralServiceProviderSpecial proposal provider forStringLiteralexpression in Bsl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<org.eclipse.xtext.naming.QualifiedName>getExportedNames(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)Gets all available imported names provided by string literalsList<org.eclipse.xtext.resource.IReferenceDescription>getReferenceDescriptions(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)Gets reference descriptions by string literalsbooleanisAppropriate(StringLiteral context)Checks context for availability of validationbooleanisAppropriate(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)Check context for availability of validationbooleanisCorrectValue(String content, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)Checks that content of theStringLiteralcorrect in this contextList<String>validate(StringLiteral context)ValidatesStringLiteral.
-
-
-
Method Detail
-
isAppropriate
boolean isAppropriate(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)
Check context for availability of validation- 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:
trueif validation available for this context
-
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
-
isCorrectValue
boolean isCorrectValue(String content, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)
Checks that content of theStringLiteralcorrect in this context- Parameters:
content- content of theStringLiteralwithout quote, can't benullcontext- 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:
trueif content of theStringLiteralcorrect in this context,falseotherwise
-
validate
List<String> validate(StringLiteral context)
ValidatesStringLiteral. This method accumulates validation messages from all registered implementation ofIAvailableStringLiteralProvider- Parameters:
context- validatingStringLiteral, 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
-
getExportedNames
Set<org.eclipse.xtext.naming.QualifiedName> getExportedNames(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Gets all available imported names provided by string literals- 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
actual-IScopeProvider, can't benull- Returns:
- found imported names, never
null
-
getReferenceDescriptions
List<org.eclipse.xtext.resource.IReferenceDescription> getReferenceDescriptions(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Gets reference descriptions by string literals- 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
actual-IScopeProvider, can't benull- Returns:
- reference descriptions or empty list if string literal doesn't provide anything reference descriptions, never
null
-
-