Package com._1c.g5.v8.dt.bsl.typesystem
Class StructureDynamicContextDefProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.typesystem.StructureDynamicContextDefProvider
-
- All Implemented Interfaces:
IDynamicContextDefProvider
public class StructureDynamicContextDefProvider extends Object implements IDynamicContextDefProvider
Special implementation ofIDynamicContextDefProvider
for constructor type of "Structure" that has semantic as "a = new Structure("derivedPropeerty1, derivedProperty2", value1, value2)
"
-
-
Constructor Summary
Constructors Constructor Description StructureDynamicContextDefProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
computeDynamicType(org.eclipse.emf.ecore.EObject semanticObject, Type computeType, Environments envs)
ComputesType
corresponding tosemanticObject
.boolean
hasDynamicContext(org.eclipse.emf.ecore.EObject semanticObject, Type computeType, Environments envs)
-
-
-
Method Detail
-
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.
-
-