Class ExpressionsFunctionsProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.expressions.functions.ExpressionsFunctionsProvider
-
- All Implemented Interfaces:
IExpressionsFunctionsProvider
public class ExpressionsFunctionsProvider extends Object implements IExpressionsFunctionsProvider
Provider of information about builtin and module functions
-
-
Field Summary
Fields Modifier and Type Field Description static String[]ADD_PERIOD_TYPES_ENstatic String[]ADD_PERIOD_TYPES_RUstatic String[]BEGIN_PERIOD_TYPES_ENstatic String[]BEGIN_PERIOD_TYPES_RUstatic String[]COMMON_PREDEFINED_TYPE_ENstatic String[]DIFF_PERIOD_TYPES_ENstatic String[]DIFF_PERIOD_TYPES_RUstatic String[]EVAL_EXPRESSION_BEGIN_TYPES_ENstatic String[]EVAL_EXPRESSION_BEGIN_TYPES_EXPR_ENstatic String[]EVAL_EXPRESSION_BEGIN_TYPES_EXPR_RUstatic String[]EVAL_EXPRESSION_BEGIN_TYPES_RUstatic String[]EVAL_EXPRESSION_SAME_TYPES_ENstatic String[]EVAL_EXPRESSION_SAME_TYPES_RUstatic String[]EVAL_EXPRESSION_SCOPE_TYPES_ENstatic String[]EVAL_EXPRESSION_SCOPE_TYPES_RUstatic String[]EVAL_GROUP_ENstatic String[]EVAL_GROUP_RUstatic String[]EVAL_TYPES_ENstatic String[]EVAL_TYPES_RUstatic String[]SIMPLE_TYPES_ENstatic String[]SIMPLE_TYPES_RUstatic StringSTART_TEMPLATE
-
Constructor Summary
Constructors Constructor Description ExpressionsFunctionsProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionsFunctionsFoldergetAll()Get all functions treeIFunctionProvidergetBuiltinFunctions()GetsIFunctionProviderfor builtin functionsIFunctionProvidergetGlobalFunctions()GetsIFunctionProviderfor global modules methodsstatic Set<CaseInsensitiveString>getMdTypes(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, org.eclipse.emf.ecore.resource.Resource resource, ScriptVariant scriptVariant)Get configuration's types for script variantbooleangetModule(String moduleName)Get moduleIFunctionProvidergetModuleFunctions(String moduleName)GetsIFunctionProviderfor server module methodsCollection<String>getModules()Get server modulesstatic Set<CaseInsensitiveString>getSimpleTypes(ScriptVariant scriptVariant)Get simple builtin types for script variantstatic Set<CaseInsensitiveString>getTypes(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, org.eclipse.emf.ecore.resource.Resource resource)Get simple builtin types and configuration's typesstatic Set<CaseInsensitiveString>getTypes(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, org.eclipse.emf.ecore.resource.Resource resource, ScriptVariant scriptVariant)Get simple builtin types and configuration's types for script variantstatic Set<CaseInsensitiveString>getValues(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, IRuntimeVersionSupport versionSupport, org.eclipse.emf.ecore.resource.Resource resource)Get predefined and enums valuesstatic Set<CaseInsensitiveString>getValues(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, IRuntimeVersionSupport versionSupport, org.eclipse.emf.ecore.resource.Resource resource, ScriptVariant scriptVariant)Get predefined and enums values for script variantvoidinit(org.eclipse.emf.ecore.resource.Resource resource)Initialize provider
-
-
-
Field Detail
-
START_TEMPLATE
public static String START_TEMPLATE
-
BEGIN_PERIOD_TYPES_RU
public static String[] BEGIN_PERIOD_TYPES_RU
-
BEGIN_PERIOD_TYPES_EN
public static String[] BEGIN_PERIOD_TYPES_EN
-
ADD_PERIOD_TYPES_RU
public static String[] ADD_PERIOD_TYPES_RU
-
ADD_PERIOD_TYPES_EN
public static String[] ADD_PERIOD_TYPES_EN
-
DIFF_PERIOD_TYPES_RU
public static String[] DIFF_PERIOD_TYPES_RU
-
DIFF_PERIOD_TYPES_EN
public static String[] DIFF_PERIOD_TYPES_EN
-
EVAL_TYPES_RU
public static String[] EVAL_TYPES_RU
-
EVAL_TYPES_EN
public static String[] EVAL_TYPES_EN
-
EVAL_GROUP_RU
public static String[] EVAL_GROUP_RU
-
EVAL_GROUP_EN
public static String[] EVAL_GROUP_EN
-
EVAL_EXPRESSION_SCOPE_TYPES_RU
public static String[] EVAL_EXPRESSION_SCOPE_TYPES_RU
-
EVAL_EXPRESSION_SCOPE_TYPES_EN
public static String[] EVAL_EXPRESSION_SCOPE_TYPES_EN
-
EVAL_EXPRESSION_BEGIN_TYPES_RU
public static String[] EVAL_EXPRESSION_BEGIN_TYPES_RU
-
EVAL_EXPRESSION_BEGIN_TYPES_EN
public static String[] EVAL_EXPRESSION_BEGIN_TYPES_EN
-
EVAL_EXPRESSION_BEGIN_TYPES_EXPR_RU
public static String[] EVAL_EXPRESSION_BEGIN_TYPES_EXPR_RU
-
EVAL_EXPRESSION_BEGIN_TYPES_EXPR_EN
public static String[] EVAL_EXPRESSION_BEGIN_TYPES_EXPR_EN
-
EVAL_EXPRESSION_SAME_TYPES_RU
public static String[] EVAL_EXPRESSION_SAME_TYPES_RU
-
EVAL_EXPRESSION_SAME_TYPES_EN
public static String[] EVAL_EXPRESSION_SAME_TYPES_EN
-
SIMPLE_TYPES_RU
public static String[] SIMPLE_TYPES_RU
-
SIMPLE_TYPES_EN
public static String[] SIMPLE_TYPES_EN
-
COMMON_PREDEFINED_TYPE_EN
public static String[] COMMON_PREDEFINED_TYPE_EN
-
-
Method Detail
-
getSimpleTypes
public static Set<CaseInsensitiveString> getSimpleTypes(ScriptVariant scriptVariant)
Get simple builtin types for script variant- Parameters:
scriptVariant- script variant, can't benull- Returns:
- set of type's names, never
null
-
getMdTypes
public static Set<CaseInsensitiveString> getMdTypes(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, org.eclipse.emf.ecore.resource.Resource resource, ScriptVariant scriptVariant)
Get configuration's types for script variant- Parameters:
scopeProvider- scope provider, can't benullresource- resource, can't benullscriptVariant- script variant, can't benull- Returns:
- set of type's names from configuration, never
null
-
getTypes
public static Set<CaseInsensitiveString> getTypes(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, org.eclipse.emf.ecore.resource.Resource resource, ScriptVariant scriptVariant)
Get simple builtin types and configuration's types for script variant- Parameters:
scopeProvider- scope provider, can't benullresource- resource, can't benullscriptVariant- script variant, can't benull- Returns:
- set of type's names, never
null
-
getTypes
public static Set<CaseInsensitiveString> getTypes(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, org.eclipse.emf.ecore.resource.Resource resource)
Get simple builtin types and configuration's types- Parameters:
scopeProvider- scope provider, can't benullresource- resource, can't benull- Returns:
- set of type's names, never
null
-
getValues
public static Set<CaseInsensitiveString> getValues(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, IRuntimeVersionSupport versionSupport, org.eclipse.emf.ecore.resource.Resource resource, ScriptVariant scriptVariant)
Get predefined and enums values for script variant- Parameters:
scopeProvider- scope provider, can't benullversionSupport- version support, can't benullresource- , can't benullscriptVariant- script variant, can't benull- Returns:
- set of values, never
null
-
getValues
public static Set<CaseInsensitiveString> getValues(org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, IRuntimeVersionSupport versionSupport, org.eclipse.emf.ecore.resource.Resource resource)
Get predefined and enums values- Parameters:
scopeProvider- scope provider, can't benullversionSupport- version support, can't benullresource- , can't benull- Returns:
- set of values, never
null
-
init
public void init(org.eclipse.emf.ecore.resource.Resource resource)
Initialize provider- Parameters:
v8project- the project parameters, can't be null
-
getAll
public ExpressionsFunctionsFolder getAll()
Description copied from interface:IExpressionsFunctionsProviderGet all functions tree- Specified by:
getAllin interfaceIExpressionsFunctionsProvider- Returns:
- root folder, never
null
-
getBuiltinFunctions
public IFunctionProvider getBuiltinFunctions()
Description copied from interface:IExpressionsFunctionsProviderGetsIFunctionProviderfor builtin functions- Specified by:
getBuiltinFunctionsin interfaceIExpressionsFunctionsProvider- Returns:
IFunctionProviderfor builtin functions, nevernull
-
getGlobalFunctions
public IFunctionProvider getGlobalFunctions()
Description copied from interface:IExpressionsFunctionsProviderGetsIFunctionProviderfor global modules methods- Specified by:
getGlobalFunctionsin interfaceIExpressionsFunctionsProvider- Returns:
IFunctionProviderfor global modules methods, nevernull
-
getModules
public Collection<String> getModules()
Description copied from interface:IExpressionsFunctionsProviderGet server modules- Specified by:
getModulesin interfaceIExpressionsFunctionsProvider- Returns:
- collection of modules, never
null
-
getModule
public boolean getModule(String moduleName)
Description copied from interface:IExpressionsFunctionsProviderGet module- Specified by:
getModulein interfaceIExpressionsFunctionsProvider- Parameters:
moduleName- name of module, can't be null- Returns:
- true if module exists, false otherwise
-
getModuleFunctions
public IFunctionProvider getModuleFunctions(String moduleName)
Description copied from interface:IExpressionsFunctionsProviderGetsIFunctionProviderfor server module methods- Specified by:
getModuleFunctionsin interfaceIExpressionsFunctionsProvider- Parameters:
moduleName- name of module, cannot benull- Returns:
IFunctionProviderfor server module methods, can benullifIExpressionsFunctionsProvider.getModule(String)returnfalse
-
-