Class RightQlScopeProvider
- java.lang.Object
-
- org.eclipse.xtext.scoping.impl.AbstractScopeProvider
-
- com._1c.g5.v8.dt.ql.scoping.QlScopeProvider
-
- com._1c.g5.v8.dt.right.ql.scoping.RightQlScopeProvider
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.impl.IDelegatingScopeProvider
,org.eclipse.xtext.scoping.IScopeProvider
public class RightQlScopeProvider extends QlScopeProvider
This class contains custom scoping description. see : http://www.eclipse.org/Xtext/documentation.html#scoping on how and when to use it
-
-
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 RightQlScopeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 org.eclipse.xtext.scoping.IScope
getAllowedDbViewSource(org.eclipse.emf.ecore.EObject context)
Gets allowed from source sectionprotected org.eclipse.xtext.scoping.IScope
getDescriptionTempTable(org.eclipse.emf.ecore.EObject context)
Gets allowed dbView from description temp tableorg.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, createFakeEObjectDescription, createScope, createUserDataForTypes, defineAllowedDbViewForExpressionInQSExpression, defineAllowedDbViewForExpressionInSelectQuery, defineAllowedDbViewForRightContext, getAllowedDbView, getDelegate, 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
-
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
-
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
-
getAllowedDbViewSource
protected org.eclipse.xtext.scoping.IScope getAllowedDbViewSource(org.eclipse.emf.ecore.EObject context)
Description copied from class:QlScopeProvider
Gets allowed from source section- Overrides:
getAllowedDbViewSource
in classQlScopeProvider
- Parameters:
context
- actual context, can't benull
- Returns:
IScope
of allowedDbViewElement
, nevernull
-
getDescriptionTempTable
protected org.eclipse.xtext.scoping.IScope getDescriptionTempTable(org.eclipse.emf.ecore.EObject context)
Description copied from class:QlScopeProvider
Gets allowed dbView from description temp table- Overrides:
getDescriptionTempTable
in classQlScopeProvider
- Parameters:
context
- actual context, can't benull
- Returns:
IScope
of allowedDbViewElement
, nevernull
-
-