Package com._1c.g5.v8.dt.bsl.typesystem
Class ValueTreeDynamicContextDefProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.typesystem.ValueTreeDynamicContextDefProvider
-
- All Implemented Interfaces:
IDynamicContextDefProvider
public class ValueTreeDynamicContextDefProvider extends Object implements IDynamicContextDefProvider
Special implementation ofIDynamicContextDefProvider
for ValueTree type
-
-
Constructor Summary
Constructors Constructor Description ValueTreeDynamicContextDefProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
computeDerivedValueTreeType(org.eclipse.emf.ecore.EObject context, Type computeType)
Creates derived type of ValueTree for adding derived columnsType
computeDynamicType(org.eclipse.emf.ecore.EObject semanticObject, Type computeType, Environments envs)
ComputesType
corresponding tosemanticObject
.static TypeContainer
getColumnCollectionType(Type type)
GetsTypeContainer
in type property with name "Columns"static TypeContainer
getValueTreeCollectionElementType(Type type)
GetsTypeContainer
which contains ValueTreeRow type with derived columns by ValueTree typeboolean
hasDynamicContext(org.eclipse.emf.ecore.EObject semanticObject, Type computeType, Environments envs)
-
-
-
Method Detail
-
getValueTreeCollectionElementType
public static TypeContainer getValueTreeCollectionElementType(Type type)
GetsTypeContainer
which contains ValueTreeRow type with derived columns by ValueTree type- Parameters:
type
- ValueTree type for getting ValueTreeRow with derived columns, cannot benull
and proxy- Returns:
TypeContainer
which contains ValueTreeRow type with derived columns by ValueTree type, can benull
if there is no ValueTreeRow in ValueTree type
-
getColumnCollectionType
public static TypeContainer getColumnCollectionType(Type type)
GetsTypeContainer
in type property with name "Columns"- Parameters:
type
-Type
for getting property with concrete name "Columns", cannot benull
- Returns:
TypeContainer
in type property with name "Columns" ornull
if property was not found
-
hasDynamicContext
public boolean hasDynamicContext(org.eclipse.emf.ecore.EObject semanticObject, Type computeType, Environments envs)
Description copied from interface:IDynamicContextDefProvider
- Specified by:
hasDynamicContext
in interfaceIDynamicContextDefProvider
- Parameters:
semanticObject
- model object from Bsl Model, can't benull
.semanticObject
instanceofOperatorStyleCreator
orFunctionStyleCreator
only.computeType
-Type
returning bysemanticObject
, can benull
in casesemanticObject
doesn't return anyType
. Returning type computes byTypesComputer
envs
- actualEnvironments
corresponding tosemanticObject
in Bsl module, can't benull
- Returns:
True
if returningType
computeType
bysemanticObject
has dynamicContextDef
,false
otherwise
-
computeDynamicType
public Type computeDynamicType(org.eclipse.emf.ecore.EObject semanticObject, Type computeType, Environments envs)
Description copied from interface:IDynamicContextDefProvider
ComputesType
corresponding tosemanticObject
. This type has expandingContextDef
vscomputeType
getting fromTypesComputer
- Specified by:
computeDynamicType
in interfaceIDynamicContextDefProvider
- Parameters:
semanticObject
- model object from Bsl Model, can't benull
.semanticObject
instanceofOperatorStyleCreator
orFunctionStyleCreator
only.computeType
-Type
returning bysemanticObject
, can benull
in casesemanticObject
doesn't return anyType
. Returning type computes byTypesComputer
envs
- actualEnvironments
corresponding tosemanticObject
in Bsl module, can't benull
- Returns:
Type
corresponding tosemanticObject
. This type has expandingContextDef
ofcomputeType
. Returning type must be identity equals givencomputeType
if and only ifcomputeType != null
. In case whencomputeType == null
returning type can benull
or can have any type value.
-
computeDerivedValueTreeType
public Type computeDerivedValueTreeType(org.eclipse.emf.ecore.EObject context, Type computeType)
Creates derived type of ValueTree for adding derived columns- Parameters:
context
- actual context for resolving objects, can't benull
computeType
- clone of the type ValueTree for modification, can't benull
- Returns:
- created derived type, never
null
-
-