Package com._1c.g5.v8.dt.bsl.typesystem
Class ValueTableDynamicContextDefProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.typesystem.ValueTableDynamicContextDefProvider
-
- All Implemented Interfaces:
IDynamicContextDefProvider
public class ValueTableDynamicContextDefProvider extends Object implements IDynamicContextDefProvider
Special implementation ofIDynamicContextDefProvider
for ValueTable type
-
-
Constructor Summary
Constructors Constructor Description ValueTableDynamicContextDefProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
computeDerivedValueTableType(org.eclipse.emf.ecore.EObject context, Type computeType)
Creates derived type of ValueTable 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"boolean
hasDynamicContext(org.eclipse.emf.ecore.EObject semanticObject, Type computeType, Environments envs)
-
-
-
Method Detail
-
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.
-
computeDerivedValueTableType
public Type computeDerivedValueTableType(org.eclipse.emf.ecore.EObject context, Type computeType)
Creates derived type of ValueTable for adding derived columns- Parameters:
context
- actual context for resolving objects, can't benull
computeType
- clone of the type ValueTable for modification, can't benull
- Returns:
- created derived type, never
null
-
-