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_EN
static String[]
ADD_PERIOD_TYPES_RU
static String[]
BEGIN_PERIOD_TYPES_EN
static String[]
BEGIN_PERIOD_TYPES_RU
static String[]
COMMON_PREDEFINED_TYPE_EN
static String[]
DIFF_PERIOD_TYPES_EN
static String[]
DIFF_PERIOD_TYPES_RU
static String[]
EVAL_EXPRESSION_BEGIN_TYPES_EN
static String[]
EVAL_EXPRESSION_BEGIN_TYPES_EXPR_EN
static String[]
EVAL_EXPRESSION_BEGIN_TYPES_EXPR_RU
static String[]
EVAL_EXPRESSION_BEGIN_TYPES_RU
static String[]
EVAL_EXPRESSION_SAME_TYPES_EN
static String[]
EVAL_EXPRESSION_SAME_TYPES_RU
static String[]
EVAL_EXPRESSION_SCOPE_TYPES_EN
static String[]
EVAL_EXPRESSION_SCOPE_TYPES_RU
static String[]
EVAL_GROUP_EN
static String[]
EVAL_GROUP_RU
static String[]
EVAL_TYPES_EN
static String[]
EVAL_TYPES_RU
static String[]
SIMPLE_TYPES_EN
static String[]
SIMPLE_TYPES_RU
static String
START_TEMPLATE
-
Constructor Summary
Constructors Constructor Description ExpressionsFunctionsProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionsFunctionsFolder
getAll()
Get all functions treeIFunctionProvider
getBuiltinFunctions()
GetsIFunctionProvider
for builtin functionsIFunctionProvider
getGlobalFunctions()
GetsIFunctionProvider
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
getModule(String moduleName)
Get moduleIFunctionProvider
getModuleFunctions(String moduleName)
GetsIFunctionProvider
for 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 variantvoid
init(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 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
public ExpressionsFunctionsFolder getAll()
Description copied from interface:IExpressionsFunctionsProvider
Get all functions tree- Specified by:
getAll
in interfaceIExpressionsFunctionsProvider
- Returns:
- root folder, never
null
-
getBuiltinFunctions
public IFunctionProvider getBuiltinFunctions()
Description copied from interface:IExpressionsFunctionsProvider
GetsIFunctionProvider
for builtin functions- Specified by:
getBuiltinFunctions
in interfaceIExpressionsFunctionsProvider
- Returns:
IFunctionProvider
for builtin functions, nevernull
-
getGlobalFunctions
public IFunctionProvider getGlobalFunctions()
Description copied from interface:IExpressionsFunctionsProvider
GetsIFunctionProvider
for global modules methods- Specified by:
getGlobalFunctions
in interfaceIExpressionsFunctionsProvider
- Returns:
IFunctionProvider
for global modules methods, nevernull
-
getModules
public Collection<String> getModules()
Description copied from interface:IExpressionsFunctionsProvider
Get server modules- Specified by:
getModules
in interfaceIExpressionsFunctionsProvider
- Returns:
- collection of modules, never
null
-
getModule
public boolean getModule(String moduleName)
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
public IFunctionProvider getModuleFunctions(String moduleName)
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
-
-