Package com._1c.g5.v8.dt.ql.dcs.scoping
Class QlDcsScopeProvider
- java.lang.Object
-
- org.eclipse.xtext.scoping.impl.AbstractScopeProvider
-
- com._1c.g5.v8.dt.ql.scoping.QlScopeProvider
-
- com._1c.g5.v8.dt.ql.dcs.scoping.QlDcsScopeProvider
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.impl.IDelegatingScopeProvider
,org.eclipse.xtext.scoping.IScopeProvider
public class QlDcsScopeProvider extends QlScopeProvider
This class contains custom scoping description. see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#scoping on how and when to use it- See Also:
QlScopeProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.ql.scoping.QlScopeProvider
QlScopeProvider.AllowedDbViewType
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ql.scoping.QlScopeProvider
TYPES_USER_DATA_INTNL, TYPES_USER_DATA_RU
-
-
Constructor Summary
Constructors Constructor Description QlDcsScopeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.eclipse.xtext.resource.IEObjectDescription>
createFakeEObjectDescription(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
Create fakeIEObjectDescription
This action need for all refers in model will be resolve.protected QlScopeProvider.AllowedDbViewType[]
defineAllowedDbView(boolean isTable, org.eclipse.emf.ecore.EObject context)
Define allowedDbViewElement
forcontext
protected QlScopeProvider.AllowedDbViewType[]
defineAllowedDbViewForExpressionInSelectOperator(org.eclipse.emf.ecore.EObject context, QuerySchemaExpression expr)
protected QlScopeProvider.AllowedDbViewType[]
defineAllowedDbViewForExpressionInSelectQuery(org.eclipse.emf.ecore.EObject context, QuerySchemaExpression expr)
protected QlScopeProvider.AllowedDbViewType[]
defineAllowedDbViewForRightContext(boolean isTable, org.eclipse.emf.ecore.EObject context)
Define allowedDbViewElement
forcontext
protected org.eclipse.xtext.scoping.IScope
getAllowedDbView(QlScopeProvider.AllowedDbViewType type, org.eclipse.emf.ecore.EObject context)
Gets allowedDbViewElement
byQlScopeProvider.AllowedDbViewType
org.eclipse.xtext.scoping.IScope
getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
-
Methods inherited from class com._1c.g5.v8.dt.ql.scoping.QlScopeProvider
createDescriptions, createScope, createUserDataForTypes, defineAllowedDbViewForExpressionInQSExpression, getAllowedDbViewSource, getDelegate, getDescriptionTempTable, getInnerFieldsFromSourceSection, getTableParameterFields, isVirtualTableParameter
-
-
-
-
Method Detail
-
getScope
public org.eclipse.xtext.scoping.IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
- Specified by:
getScope
in interfaceorg.eclipse.xtext.scoping.IScopeProvider
- Overrides:
getScope
in classQlScopeProvider
-
createFakeEObjectDescription
protected List<org.eclipse.xtext.resource.IEObjectDescription> createFakeEObjectDescription(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
Description copied from class:QlScopeProvider
Create fakeIEObjectDescription
This action need for all refers in model will be resolve. In validation stage check all refers and show correct warning or error messages- Overrides:
createFakeEObjectDescription
in classQlScopeProvider
- Returns:
- list of
IEObjectDescription
-
defineAllowedDbView
protected QlScopeProvider.AllowedDbViewType[] defineAllowedDbView(boolean isTable, org.eclipse.emf.ecore.EObject context)
Description copied from class:QlScopeProvider
Define allowedDbViewElement
forcontext
- Overrides:
defineAllowedDbView
in classQlScopeProvider
- Returns:
- types of allowed
DbViewElement
asQlScopeProvider.AllowedDbViewType
-
defineAllowedDbViewForRightContext
protected QlScopeProvider.AllowedDbViewType[] defineAllowedDbViewForRightContext(boolean isTable, org.eclipse.emf.ecore.EObject context)
Description copied from class:QlScopeProvider
Define allowedDbViewElement
forcontext
- Overrides:
defineAllowedDbViewForRightContext
in classQlScopeProvider
- Returns:
- types of allowed
DbViewElement
asQlScopeProvider.AllowedDbViewType
-
defineAllowedDbViewForExpressionInSelectQuery
protected QlScopeProvider.AllowedDbViewType[] defineAllowedDbViewForExpressionInSelectQuery(org.eclipse.emf.ecore.EObject context, QuerySchemaExpression expr)
Description copied from class:QlScopeProvider
Define allowedDbViewElement
forcontext
, which isQuerySchemaExpression
. Thiscontext
part of select query, not operator of select query- Overrides:
defineAllowedDbViewForExpressionInSelectQuery
in classQlScopeProvider
- Returns:
- types of allowed
DbViewElement
asQlScopeProvider.AllowedDbViewType
-
defineAllowedDbViewForExpressionInSelectOperator
protected QlScopeProvider.AllowedDbViewType[] defineAllowedDbViewForExpressionInSelectOperator(org.eclipse.emf.ecore.EObject context, QuerySchemaExpression expr)
Description copied from class:QlScopeProvider
Define allowedDbViewElement
forcontext
, which isQuerySchemaExpression
. Thiscontext
part of operator of select query- Overrides:
defineAllowedDbViewForExpressionInSelectOperator
in classQlScopeProvider
- Returns:
- types of allowed
DbViewElement
asQlScopeProvider.AllowedDbViewType
-
getAllowedDbView
protected org.eclipse.xtext.scoping.IScope getAllowedDbView(QlScopeProvider.AllowedDbViewType type, org.eclipse.emf.ecore.EObject context)
Description copied from class:QlScopeProvider
Gets allowedDbViewElement
byQlScopeProvider.AllowedDbViewType
- Overrides:
getAllowedDbView
in classQlScopeProvider
- Parameters:
type
- ofQlScopeProvider.AllowedDbViewType
for getting actualIScope
, can't benull
- Returns:
IScope
of allowedDbViewElement
, nevernull
-
-