Class ExpressionsFunctionsProvider
java.lang.Object
com._1c.g5.v8.dt.dcs.expressions.functions.ExpressionsFunctionsProvider
- All Implemented Interfaces:
IExpressionsFunctionsProvider
Provider of information about builtin and module functions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String[]
static String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAll()
Get all functions treeGetsIFunctionProvider
for builtin functionsGetsIFunctionProvider
for 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 variantboolean
Get modulegetModuleFunctions
(String moduleName) GetsIFunctionProvider
for server module methodsGet 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 variantvoid
init
(org.eclipse.emf.ecore.resource.Resource resource) Initialize provider
-
Field Details
-
START_TEMPLATE
-
BEGIN_PERIOD_TYPES_RU
-
BEGIN_PERIOD_TYPES_EN
-
ADD_PERIOD_TYPES_RU
-
ADD_PERIOD_TYPES_EN
-
DIFF_PERIOD_TYPES_RU
-
DIFF_PERIOD_TYPES_EN
-
EVAL_TYPES_RU
-
EVAL_TYPES_EN
-
EVAL_GROUP_RU
-
EVAL_GROUP_EN
-
EVAL_EXPRESSION_SCOPE_TYPES_RU
-
EVAL_EXPRESSION_SCOPE_TYPES_EN
-
EVAL_EXPRESSION_BEGIN_TYPES_RU
-
EVAL_EXPRESSION_BEGIN_TYPES_EN
-
EVAL_EXPRESSION_BEGIN_TYPES_EXPR_RU
-
EVAL_EXPRESSION_BEGIN_TYPES_EXPR_EN
-
EVAL_EXPRESSION_SAME_TYPES_RU
-
EVAL_EXPRESSION_SAME_TYPES_EN
-
SIMPLE_TYPES_RU
-
SIMPLE_TYPES_EN
-
COMMON_PREDEFINED_TYPE_EN
-
-
Constructor Details
-
ExpressionsFunctionsProvider
public ExpressionsFunctionsProvider()
-
-
Method Details
-
getSimpleTypes
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 benull
resource
- resource, can't benull
scriptVariant
- 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 benull
resource
- resource, can't benull
scriptVariant
- 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 benull
resource
- 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 benull
versionSupport
- version support, can't benull
resource
- , can't benull
scriptVariant
- 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 benull
versionSupport
- version support, can't benull
resource
- , 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
Description copied from interface:IExpressionsFunctionsProvider
Get all functions tree- Specified by:
getAll
in interfaceIExpressionsFunctionsProvider
- Returns:
- root folder, never
null
-
getBuiltinFunctions
Description copied from interface:IExpressionsFunctionsProvider
GetsIFunctionProvider
for builtin functions- Specified by:
getBuiltinFunctions
in interfaceIExpressionsFunctionsProvider
- Returns:
IFunctionProvider
for builtin functions, nevernull
-
getGlobalFunctions
Description copied from interface:IExpressionsFunctionsProvider
GetsIFunctionProvider
for global modules methods- Specified by:
getGlobalFunctions
in interfaceIExpressionsFunctionsProvider
- Returns:
IFunctionProvider
for global modules methods, nevernull
-
getModules
Description copied from interface:IExpressionsFunctionsProvider
Get server modules- Specified by:
getModules
in interfaceIExpressionsFunctionsProvider
- Returns:
- collection of modules, never
null
-
getModule
Description copied from interface:IExpressionsFunctionsProvider
Get module- Specified by:
getModule
in interfaceIExpressionsFunctionsProvider
- Parameters:
moduleName
- name of module, can't be null- Returns:
- true if module exists, false otherwise
-
getModuleFunctions
Description copied from interface:IExpressionsFunctionsProvider
GetsIFunctionProvider
for server module methods- Specified by:
getModuleFunctions
in interfaceIExpressionsFunctionsProvider
- Parameters:
moduleName
- name of module, cannot benull
- Returns:
IFunctionProvider
for server module methods, can benull
ifIExpressionsFunctionsProvider.getModule(String)
returnfalse
-