Interface IAvailableStringLiteralServiceProvider
-
public interface IAvailableStringLiteralServiceProvider
Special proposal provider forStringLiteral
expression 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 literalsboolean
isAppropriate(StringLiteral context)
Checks context for availability of validationboolean
isAppropriate(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)
Check context for availability of validationboolean
isCorrectValue(String content, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)
Checks that content of theStringLiteral
correct 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:
true
if validation available for this context
-
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
-
isCorrectValue
boolean isCorrectValue(String content, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)
Checks that content of theStringLiteral
correct in this context- 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
- Returns:
true
if content of theStringLiteral
correct in this context,false
otherwise
-
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
StringLiteral
content 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
-
-